• 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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter dawud

    (@dawud)

    Can anyone help me?

    That’s much more a css/styling question that a wp one. You might google for “styling horizontal nav highlight current page” etc.

    One other thing you could do: look at the wp-andreas01-12 theme (find it at http://themes.wordpress.net – use the search function to find “andreas”) – the nav header tabs do this.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Highlight on-page nav…’ is closed to new replies.