?
Solved

Anchor links not working right in word press

Posted on 2015-02-23
7
Medium Priority
?
62 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
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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.

 

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 2000 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Now that you've installed WordPress 2.9 (http://www.experts-exchange.com/articles/Web_Development/Blogs/WordPress/WordPress-2-9-What-to-Expect-When-Upgrading-to-WordPress-2-9.html?) on your site, you need to install some plugins to get the most out …
WordPress has made it easy to create scalable sites based on their powerful CMS, but as great as WordPress is, there are some SEO issues that haven’t been addressed out of the box.  Fortunately these problems can be solved with a few plugins.  The f…
The purpose of this video is to demonstrate how to automatically show related posts at the bottom of a blog post in WordPress. This will be demonstrated using a Windows 8 PC. Plugin “Yet Another Related Posts Plugin” will be used. Go to your…
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…
Suggested Courses
Course of the Month16 days, 15 hours left to enroll

864 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