WordPress.org

Forums

The current_motherpage class (2 posts)

  1. gersongoulart
    Member
    Posted 10 years ago #

    I want to add a " current_motherpage" class in the first level

  2. of a subpage with "current_page_item", like this:

    <li class="pagenav">

  3. <li class="page_item current_page_item">bla bla

    Anyone know how I obtain this?
    Thank you.

  • Lorelle
    Member
    Posted 10 years ago #

    Are you talking about Pages or post pages?

    http://codex.wordpress.org/Template_Tags/wp_list_pages

    All list items (

  • ) generated by this tag will be given the CSS class "page_item". When wp_list_pages is called while displaying a Page, the list item for that Page will be given the additional CSS class "current_page_item".
  • Topic Closed

    This topic has been closed to new replies.

    About this Topic

    Tags