Solved

Anchor links not working right in word press

Posted on 2015-02-23
7
52 Views
Last Modified: 2015-02-23
Why are my anchor links not going to the question?  Rather, they are going to the answer.  I would like when someone clicks on the question, that it jumps them lower down the page and that the question is repeated with the answer.  It works fine in html.  Here is beta page link

http://beta.fallsglass.com/?page_id=15&preview=true&preview_id=15&preview_nonce=d087c53e55#w-look
0
Comment
Question by:nsitedesigns
  • 4
  • 3
7 Comments
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 40625888
We can't use a preview link to view stuff (we would have to be logged in to do that).  Are you doing this from preview or published states?
0
 

Author Comment

by:nsitedesigns
ID: 40625910
0
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 40626101
Yes, and the internal anchors appear to be working fine for me...
0
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 

Author Comment

by:nsitedesigns
ID: 40626149
For me it goes to the answer and not to the question.   For example, when I click on Are Vinyl Windows Green link at the top of the page,  it jumps down page to the ANSWEr beginning with, "Vinyl is a superior pr.."  Ideally, I would like it to jump down to the place where the QUESTION is referenced again.

This screen shot shows (green arrow) where I would like it to jump visitor too.  The red arrow shows where it actually goes to.  I am using ff on a mac.

http://screencast.com/t/fyQgZOWd6
0
 
LVL 70

Accepted Solution

by:
Jason C. Levine earned 500 total points
ID: 40626546
Again, it's working fine for me.  I jump to the question header in FF for Windows.  

The one thing you may want to try is wrapping the text with the <a>:

Do this:
<h3><a id="w-green">Are vinyl windows green?</a></h3>

Open in new window


Not this:
<h3><a id="w-green"></a>Are vinyl windows green?</h3>

Open in new window


Correct jump
Also, shouldn't it be <a name="whatever"> and not <a id="whatever">?
0
 

Author Comment

by:nsitedesigns
ID: 40626586
I set it up the same way Dreamweaver CS 6 does anchor tags.  I checked link in Chrome and it works there.  Must be a funky ff in mac thing.
0
 

Author Closing Comment

by:nsitedesigns
ID: 40626591
i'll give you points for your effort in trying to help even though your suggestions made no difference in how it worked in ff on mac.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Like there are many different versions of Wordpress, there are also a handful of related side projects WordPress users should be familiar with.   All of these projects are open source and GPL licensed, which means there are few restrictions to us…
Transferring a wordpress site from a host or local dev server to another host can be a pain. So I've included my steps on how I have accomplished this task. Steps include an assumption that you have Cpanel access or Ftp access.. If you do not hav…
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…
The purpose of this video is to demonstrate how to prevent comment spam on a WordPress Website. This will be demonstrated using a Windows 8 PC. Plugin Akismet will be used. Go to your WordPress login page. This will look like the following: myw…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now