Anchor links not working?

  • Author
    Posts
  • #1155715

    I usually have a pretty good grasp on html and css, but this has got me stumped. Is a free account with wordpress.com limited, and doesn’t allow anchor links?

    I’m trying to create an anchor link to each list item on this page.

    1. I placed this into the list item I want it to jump to.

    <a></a>

    2. I turned each of the fallacies’ titles into a link so they could be copied and pasted elsewhere, and when clicked, it would jump to that spot in the page.

    <a href="/2013/02/15/rhetological-fallacies/#appeal-to-anonymous-authority‎">Appeal to Anonymous Authority</a>

    4. Here’s the whole thing all put together.

    <li><a></a><strong><a href="/2013/02/15/rhetological-fallacies/#appeal-to-anonymous-authority‎">Appeal to Anonymous Authority</a></strong><br />
    Using evidence from an unnamed "expert" or "study" or generalized group (like "scientists") to claim something is true.<br />
    <em style="font-size:12px;">"They say it takes 7 years to digest chewing gum."</li>

    3. Testing the link in a new window does nothing. Brings me to the article, but not to the list item.

    http://opinionandfact.wordpress.com/2013/02/15/rhetological-fallacies/#appeal-to-anonymous-authority‎

    The blog I need help with is opinionandfact.wordpress.com.

    #1155908

    justpi
    Member
    #1155916

    Hmm, I thought I switched this to resolved– because I’d given up on it! Parts of my post you don’t see for some reason– I pasted in the code that I used on the page in question… but it didn’t show when I submitted the question. In any case, I know I coded everything correct on the page, and I have been able to get anchor links to work just fine on other websites, but not here on the free wordpress space.

    #1155921

    justpi
    Member

    No, you didn’t code it correctly. Study my post please.

    #1155949

    Justpi, I’d be grateful if you could be more specific– and just to look at the first one labeled “appeal to the mind” — the others don’t work of course– but the first one is the small-scale testing area for me. Once I am able to get that one to work, I’ll apply the same to the rest. Let me know what it is that i’m doing wrong so I can isolate that one problem area.

    (Going to try pasting my code in here to see if it works this time, but ignore it if it’s all wonky.)

    </p>
    <li><a></a><strong><a href="/2013/02/15/rhetological-fallacies/#appeal-to-anonymous-authority‎">Appeal to Anonymous Authority</a></strong><br />
    Using evidence from an unnamed "expert" or "study" or generalized group (like "scientists") to claim something is true.<br />
    <em style="font-size:12px;">"They say it takes 7 years to digest chewing gum."</li>
    <p>
    #1155950

    ok– as I suspected. When I hit “submit” it is stripping out the [a id=””][/a] –among other things… I would highly recommend looking at the actual page itself to see what I did.

    #1155951

    justpi
    Member

    Ah sorry: I had looked at the code of the page – what I hadn’t looked at was the fourth paragraph of the intro!

    The coding is correct, but the links produce some wrong URL character code after the actual URL. Had you copypasted the content from another source? Try deleting and re-typing the last word of each identifier (for example, delete and retype “authority” in “#appeal-to-anonymous-authority”).

The topic ‘Anchor links not working?’ is closed to new replies.