• kjeft

    (@kjeft)


    Hey all

    I am wondering how I can add the current_page_item class to my page navigation whilst I am viewing one of my category (and single) pages.
    Basically I want to give the impression that all my bike category posts are part of my bike page. Is there a way to do this?

    Many thanks

    Emma

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

    (@kjeft)

    I am thinking something like

    if ( in_category('bike') ) {
    // Add .current_page_item to the Bikes page
    }

    but my php skills kind of needs some fine tuning 😉

    Thread Starter kjeft

    (@kjeft)

    p.s. it would be even better if I could actually make the category part of the page, so that the permalink would include /bikes/, but yeah, I presume that is not really possible

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Tricky navigation highlighting on category pages’ is closed to new replies.