WordPress Table of Contents Plugin (CMTOC) - How To - Highlight Active Title


How to Highlight Active Title

Back to User Guides

Note: Features covered in this guide were introduced in version 1.5.5 of the WordPress Table of Contents plugin.

The plugin allows to highlight the active title while scrolling the page. It's supported by Floating TOC and static TOC.

Front-end Example

When using Floating TOC, the relevant title will be highlighted when the user is viewing any chapter in the article. Learn more about How to enable and configure Floating TOC.

Front-end example - Floating Table of Contents WordPress
Front-end example

When you use a static TOC, it can be displayed not only at the top of the article, but anywhere within the post using a shortocode. The active title feature can be useful, for example, in case if you place a TOC at the beginning of every chapter. This way, the current title will be highlighted. Learn more about Manual placing a TOC withing the content.

Highlighting active title - WordPress TOC Plugin
Highlighting active title

Setting Up

To configure it, navigate to Admin Dashboard â†’ CM Table of Contents Pro â†’ Settings â†’ Table of Contents tab.

Table of contents settings tab - TOC Table of Contents WordPress Plugin
Table of contents settings tab

Under the General Settings section you need to find the following options:

Settings for highlighting active title - WordPress Table of Contents
Settings for highlighting active title
  • Active title - Enable this option to highlight the title of the chapter which the user is currently viewing. It will be displayed constantly while the user scrolls through the conent, and the currently viewed chapter will be highlighted in TOC.
  • Active title custom CSS - Add your own style for the currently viewed title.

    Example of Using Custom CSS:

    For example, we can change the font-size and change the color by adding the following CSS parameters: font-size:25px; color:red;

    Floating TOC:

    Active title in the floating TOC - Table of Contents WordPress
    Active title in the floating TOC

    Static TOC displayed with a shortcode:

    Active title in the static TOC - WordPress Table of Contents Block
    Active title in the static TOC


More information about the WordPress Table of Contents Plugin

Other WordPress products can be found at CreativeMinds WordPress Store

Let us know how we can Improve this Product Documentation Page

To open a Support Ticket visit our support center
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.