Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 65
  • Last Modified:

Anchor links not working right in word press

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
nsitedesigns
Asked:
nsitedesigns
  • 4
  • 3
1 Solution
 
Jason C. LevineNo oneCommented:
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
 
nsitedesignsAuthor Commented:
0
 
Jason C. LevineNo oneCommented:
Yes, and the internal anchors appear to be working fine for me...
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
nsitedesignsAuthor Commented:
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
 
Jason C. LevineNo oneCommented:
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
 
nsitedesignsAuthor Commented:
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
 
nsitedesignsAuthor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now