• Resolved mjmurphy53711

    (@mjmurphy53711)


    Ideally with a mobile first design our post layout would be image>heading>intro paragraph>TOC>body of content.

    I’d like the TOC to be centered under the intro text. How can I achieve this?

    • This topic was modified 4 years, 11 months ago by Jan Dembowski.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter mjmurphy53711

    (@mjmurphy53711)

    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.

    Steven

    (@shazahm1hotmailcom)

    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!

    Thread Starter mjmurphy53711

    (@mjmurphy53711)

    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?

    Steven

    (@shazahm1hotmailcom)

    @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.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to position TOC in center?’ is closed to new replies.