The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Pages selected class (2 posts)

  1. kartiktalwar
    Posted 8 years ago #

    i made a theme and i used the list pages tag
    the tag is

    <?php wp_list_pages('title_li='); ?>

    now i wanna add the tag so when someone goes to about page the about page class should be selected


    can some1 plz tell me wat to do or modify it for me

  2. Eric Amundson
    Volunteer Moderator
    Posted 8 years ago #

    This should help:

    A class will automatically be added for the active page and you'll just need to add some CSS to style the list item with the class current_page_item - make sense?

Topic Closed

This topic has been closed to new replies.

About this Topic