Forums

[resolved] Listing pages with in category styling (4 posts)

  1. ncott
    Member
    Posted 2 years ago #

    Hey,

    I was wondering if anyone had any ideas for how to use wp_list_pages but to have a conditional so that the page the user is on displays additional styling. The fix I'm using is just to manually list the pages with a conditional statement to add the styling. The problem with this is that I have to add to the code everytime we add a new page...

    Thanks!

  2. MichaelH
    Volunteer
    Posted 2 years ago #

  3. ncott
    Member
    Posted 2 years ago #

    No, I didn't see that. So I guess I add current_page_item to the style sheet with any change I'd like... Does that class pop up anywhere else or only in the list generated by wp_list_pages?

    Thanks again!

  4. MichaelH
    Volunteer
    Posted 2 years ago #

    Does that class pop up anywhere else

    Also in wp_page_menu()

Topic Closed

This topic has been closed to new replies.

About this Topic