Start a new discussion

To start a new discussion please visit the discussions section of the GitHub home page of the project.

Discussions on GitHub

You can also search our old self-hosted forums for any useful information below but please note that posting new content here is not possible any more.

How do I add the current class to related pages?

Home Forums Older releases 0.9.x How do I add the current class to related pages?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1361
    johnnytu72
    Participant

    Hi~

    The markCurrentItem option is working fine.

    However, how do I add the current class to related (child) pages which the url are not on the menu list?

    Thank you~

    #1651
    admin
    Keymaster

    Hi! Unfortunately, you can’t make it work automatically if the links to child pages are not in the menu tree since there is no way the script to know the page relations in that case.

    So you are left with the option to manually set the “current” class to the appropriate menu items on child pages. You will need to check server-side which are the parent items of the current page and output the “current” class accordingly.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘0.9.x’ is closed to new topics and replies.