Toc to anchor rather then next page

Following the info on page https://theme.co/apex/forum/t/how-to-implement-toc/28242/10

I added an ID to the existing page that created an anchor
added id infamous

The ID references the 1st video titled “THE INFAMOUS VIDEO”
https://johnnybogs.com/social/history-of-aaron-schlossberg-ice-comment/

In a text section in column 1 I added the short code.

I changed page-“1” to reflect the infamous anchor/link

My goal was to make the link for Introduction 1 open the anchor on the same page to the “#infamous” anchor

see below:

[toc title=“Table of Contents” type=“left”] [toc_item title=“1. Intro” infamous] [toc_item title=“2. More Information” page=“2”] [toc_item title=“3. Even More Information” page=“3”] [/toc]

You’ll learn what happened

(from 1st phone video to most recent repercussions)

And how YOU can use this information
(LEVERAGE the internet to SUPPORT heros and EXPOSE villains)

It didn’t work.

Suggestions on how to make it work?

ty

Hi @johnbogs,

Thanks for posting in.

The TOC is used for pagination, example, you can split your content by adding <!--nextpage-->, that will create two pages, adding another will make it three pages. Then the TOC should be linked to the pagination.

Right now, it’s not linking since there is no pagination.

Please check this sample http://demo.theme.co/integrity-1/shortcodes/table-of-contents/

You’ll see the Pages: 1 2 3 at the bottom, it’s the breakpoint where <!--nextpage--> is added.

Thanks!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.