• Resolved webster0110

    (@webster0110)


    Hey,
    Thanks for the great plugin!
    Quick question: I have seen the usual way to remove the numbering from the TOC (through the parameters). However, I am trying to keep this numbering for most pages (as default) but to remove it for specific pages. I already use “additional CSS” to customize the TOC on specific pages and would like to know if one can likewise remove the numbering.
    Thanks in advance!
    Best,
    W.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Steven

    (@shazahm1hotmailcom)

    This can only be accomplished with CSS and will be theme dependant. Here’s an example:

    #post-9137 #ez-toc-container.counter-hierarchy ul, 
    .ez-toc-widget-container.counter-hierarchy ul, 
    #ez-toc-container ul, 
    .ez-toc-widget-container ul {
    	counter-reset: unset !important;
    }
    
    #post-9137 #ez-toc-container ul.ez-toc-list li a::before, 
    .ez-toc-widget-container ul.ez-toc-list li a::before {
    	content: "" !important;
    }

    This will remove the list counter on post 9137. The #post-9137 selector will depend on the theme. You may have to contact the theme’s support team to ask them what the correct selector will be for a specific page.

    Thread Starter webster0110

    (@webster0110)

    Perfect, that did the trick wonderfully! Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Remove TOC numbering for specific page’ is closed to new replies.