Solved

Anchor links not working right in word press

Posted on 2015-02-23
7
53 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What's this? As a volunteer Page Editor for Experts-Exchange.com, I have noticed that many authors also have blogs, and pull articles from their blogs to post at Experts-Exchange. I appreciate each author sharing their blog content with our site …
In order to have all security and back ups taken care of, WordPress users can sign up for services with WP Engine.
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…
The purpose of this video is to demonstrate how to set up an RSS Feed on a WordPress Website. This will be demonstrated using a Windows 8 PC. Feedburner will be used for this demonstration. Go to your WordPress login page. This will look like the…

911 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

21 Experts available now in Live!

Get 1:1 Help Now