Forums

How to get the whole page tree, current page highlighted (3 posts)

  1. pixeline
    Member
    Posted 2 years ago #

    Hello!

    I use WP mostly as a CMS. Therefore i have a multi-level hierarchy of pages. I would like to display that hierarchy at all time, with the current page highlighted.

    Unfortunately, i don't have a clue on how to achieve that.Any idea?

  2. mms83
    Member
    Posted 2 years ago #

    Hello,

    If I understand you right, you just need to style in CSS:

    .current_page_ancestor { … } /* any ancestor of the current Page */

    It worked on my website :)

  3. pixeline
    Member
    Posted 2 years ago #

    that would only take care of the css. But the html full hierarchy list is not created in the first place. So the css won't have anything to do.

Topic Closed

This topic has been closed to new replies.

About this Topic