Forums

Pageofposts ! highlight the menu when the visitor is reading a post (2 posts)

  1. whoaloic
    Member
    Posted 7 months ago #

    Hello!
    I wanted to display posts in a page and not in a category because I use the dynamic headers plugin to have different headers depenging on the page.
    My problem was that I used category in my custom menu and the dynamic headers plugin does not allow to manage a header for categories (archive.php).
    So I had to display posts in a page and no more in a category. For that, I created a template page pageofposts.php and add a custom field "category" assigned to the name of the category I want to use.
    Then, the posts of the category are listed in the page I've created.
    My problem is that I get a problem with my menu. When I am on the page of the list of posts, my menu is higlighted, but when I am on a post, my menu is no more hightlighted.
    You coulg check lesherbesfolles.eu to see my problem. When you click on "performances" menu, you arrive on a page which displays posts, the you click on a post, and there, my menu is no more highlighted.

    Please Help! I really need to fix that.

  2. esmi
    Theme Diva & Forum Moderator
    Posted 7 months ago #

    There's nothing you do about it via the menu classes since, as soon as you move to a single Post, you are no longer on the Performances page. The only alternative I can think of is possibly using jQuery to add an additional class to the relevant page based on a custom field attached to the post.

Reply

You must log in to post.

About this Topic