[Resolved] Table of Contents simple question

Home Forums Support Table of Contents simple question

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1317437
    nomadiceman

    Is a table of contents, TOC, simply a list with jump links?

    Is there anymore coding required to “tell” google its a TOC?

    Basically I want to manually add a TOC to some of my pages and don’t want to use a plugin

    Thanks for your help guys as usual

    #1317802
    David
    Staff
    Customer Support

    Hi there,

    yes – just a list of links should be fine. Not sure if it adds much value but you can tell ‘google’ its a Navigation element by wrapping it in <nav> tags. eg.

    <nav>
        <ul>
            <li><a href="#">A jump link</a></li>
            <li><a href="#">A jump link</a></li>
            <li><a href="#">A jump link</a></li>
            <li><a href="#">A jump link</a></li>
        </ul>
    </nav>

    If you’re doing this on a lot of posts then the Table of Contents Plus plugin will save you a lot of time.

    #1320108
    nomadiceman

    that’s great thank you

    #1320283
    David
    Staff
    Customer Support
    #1344298
    Shrawan

    Hi David,

    The TOC is an important aspect for SEO, and your remarks would be very useful for non-developers –

    Is there any other functions (including SEO) that the Table of Contents Plus plugin adds (besides the styling) which we can incorporate in the lines of the code which you have pasted above so that we manage without using the plugin?

    Thanks!

    #1344554
    David
    Staff
    Customer Support

    Hi there,

    not that i am aware of – on its demo site it outputs a simple list.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.