Selecting category should not deselect current menu item
-
Hi all,
Im close to finish my first Worpress site. So far, I was able to solve all of my problems, also using this forum’s links. The only one thing is the menu items in the main bar. They get deselected if I choose from a category, linked via an in-page menu rather than the main menu.
While the underlying reason seems clear to me, I’ve already tried out a lot of things based on CSS and PHP, but unfortunately none of them worked. Selecting an item in the main menu bar calls content-page.php, while selecting a category via link in the side-bar on a page will run through category.php. This will completely deselect the menubar (and keep the user unoriented).
Since the menubar is completely deselected, none of the CSS classes that are applied to selected menu items would apply. So maybe one of you had the same problem and found an easy solution of how to patch the CSS from within the PHP code.
Thanks a lot for your support.
G?tz
- The topic ‘Selecting category should not deselect current menu item’ is closed to new replies.