current_page_parent for search results
-
I have styled my current_page_parent so that when you are on a child page the parent nav button is highlighted in the navbar.
e.g. if Toast is a subpage (child) of Bread Products, then Bread Products is highlighted in the navbar.This is all good. The problem comes when I do a search. My search results page (search.php) triggers my Blog nav button to be highlighted. it’s as if it thinks that the search results page is a child page of the Blog.
How can I stop it from doing this? I want my search results page to have no button highlighted in the navbar as it is a separate thing in my mind and does not belong in any of my sections.
Can anyone help?
thanks in advance
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘current_page_parent for search results’ is closed to new replies.