example would be here:
https://thepointsguy.com/guide/beginners/
“in this post”
I’d like to do that, positioning wise. Would be great if built in as a display option (after first x paragraph, etc). Any advice?
Moderator
Jan Dembowski
(@jdembowski)
Forum Moderator and Brute Squad
@mjmurphy53711 Unless you’re reporting your topic as spam or abuse do not use the Report this topic link. It’s not for trying to get faster support. It just gets the attention of the forum moderators for banning spammers and other abuses.
I’ve also archived your bump replies.
Though not supported, you can use the [toc]
shortcode to place the TOC wherever on the page you wish.
As for centering, use CSS. Add this to the theme’s custom CSS area found in the Customizer.
div#ez-toc-container {
margin: 0 auto;
}
Hope that helps!
Thank you for exactly what I needed, I appreciate the support. Updating review accordingly.
Thanks for this Steven, it works.
But when inserting the tables using the [toc] code some of the internal links do not work. What I mean by that is that you click the internal link in the table, but it doesn’t scroll down to that part.
This problem doesn’t happen when the table is automatically inserted, just when inserted via the shortcode.
What may be the reason?
@ivan126
RE: What may be the reason?
Sorry, impossible for to know. Perhaps if you share a link of the page with issue. Being able to see the issue might help with a reason and solution.