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)
  • You must be logged in to reply to this topic.

Register

You will be emailed a link to set your password.

Login

Lost password?