Forums

[resolved] add a TOC to a long page (5 posts)

  1. Cathy Tibbles
    Member
    Posted 4 years ago #

    I would like to add a "skip to part B" in the contact Page. I can change the contact template if need be, as it is used only for this one Page. How do I do this?

  2. Michael Fields
    Theme Wrangler
    Posted 4 years ago #

    Try this

    <h2>Part A</a>
    <p><a href="#part_b">Skip to Part B</p>
    ....
    ....
    ....
    ....
    ....
    ....
    <a id="part_b"></a>
    <h2>Part B</h2>
    ...
    ...
    ...
    ...
    ...
    ...
  3. Cathy Tibbles
    Member
    Posted 4 years ago #

    Just add a link ID? I didn't know you could do that with links! Thanks so much.

    Cathy

  4. Otto
    Tech Ninja
    Posted 4 years ago #

    You don't even really need to do that.

    Instead of

    <a id="part_b"></a>
    <h2>Part B</h2>

    Try just this:
    <h2 id="part_b">Part B</h2>

    The link in the TOC itself will remain the same. You can create a link to any ID in the page this way.

  5. Cathy Tibbles
    Member
    Posted 4 years ago #

    thank you Otto, and MFields. :)

Topic Closed

This topic has been closed to new replies.

About this Topic