Highlight on-page nav…
-
Got a nav bar that I need the following…
home | blog | page | page | page
I’ve read “Template Tags/WP List Pages” on the codex and get how to style my nav bar for pages using ‘current_page_item’
However, I want to have a nav link “blog” that returns to my blog front page (index.php). I want “blog” to be highlighted/styled like the other page links in the nav bar when visitors are viewing index.php or any of the posts/archives/categories/tags, etc. How to do this?
One crux, my “home” link is an different template with page and blog elements in it. I want home to be this page and blog to be what you’d usually see at index.php. That way visitors feel like the blog is inside my website and have a way of getting back to the front page of the blog.
I want to do all this from ‘root.’ And all pages are being built in WP as well.
Thanks
- The topic ‘Highlight on-page nav…’ is closed to new replies.