Highlight parent page in nav when on child page
-
I’m building my site with pages, not worried about posts here.
If I structure my pages as follows:
-About Us
–History
–ContactWhen I’m on the About Us page the page name in the navigation is highlighted. But when I go to History or Contact the parent page name in the nav is no longer highlighted. How do I change this? I’m new to coding, basically teaching myself as I go.
Here’s a snippet of my current nav code in my header.php file:
<ul id=”nav”>
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Highlight parent page in nav when on child page’ is closed to new replies.