In-page links don’t work

  • Unknown's avatar

    I’ve set links on a page to help readers navigate to different sections of the page, like a TOC. I haven’t published the page yet, but in preview mode, the links act like links, i.e. the flash and change color, but they don’t go anywhere!

    Also, my “top of page” links don’t go to the top of the page, they go to my previous (published) post! It’s maddening!

    I hope one of you mavens can help!

    I can post the code if that would help…

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Hello,

    To better understand where this may be going wrong, it could be helpful to share what you have written so far – as you suggested.

  • Unknown's avatar

    Here is the html for the links in the TOC, and also my “top” links, and the targets:

    <h3 id="top"><strong><em>Today's Recipes</em></strong></h3>
    
    <li><a href="#menu-miso"> Miso Soup </a><em> Miso Shiru</em></li>
     	<li><a href="#menu-gohan"> Rice </a><em>Gohan</em></li>
     	<li><a href="#menu-tsukemono"> Pickles </a><em> Tsukemono</em></li>
     	<li><a href="#menu-shiosake"> Salt Salmon </a><em>Shiosake</em></li>
     	<li><a href="#menu-tamago"> Egg </a><em>Tamago</em></li>
     	<li><a href="#menu-salada"> Salad </a><em>Salada</em></li>
     	<li><a href="#menu-ocha"> Tea </a><em>Ocha</em></li>
    
    <p id="menu-dashi"><h4><strong><em>Dashi</em></strong></h4></p>
    

    I hope that’s enough for you…

  • Unknown's avatar

    Still didn’t work How can I post this without it actually turning into my TOC?

  • You’ll want to use the “code” formatting button to post without the HTML turning into actual formatted text.

    What is the URL of the page where you are trying to do this?

  • Unknown's avatar

    Thanks for that tip! One thing I NEVER would have been able to figure out on my own!

    This is the code for the link to the top, and for the target. `

    Today’s Recipes

    <a href=”#top”>top`

    This is my TOC, and the code for the targets.` Broth Dashi

  • Miso Soup Miso Shiru
  • Rice Gohan
  • Pickles Tsukemono
  • Salt Salmon Shiosake
  • Egg Tamago
  • Salad Salada
  • Tea Ocha
  • `

    <p id="menu-dashi"><h4><strong><em>Dashi</em></strong></h4></p>