• Hey,

    I was wondering if there is a way to configure the wp_list_pages function.

    I’m currently using the following to output my navigation:
    <?php wp_list_pages(‘include=4,5,6,7,8,9,10&sort_column=menu_order&title_li=’); ?>
    However, would like to have it output(without the extra ‘tag’ and ‘aa) parts, just did them to get round the filtering ?? :

    <li tag><div class=”class name”>LINK TEXT HERE</div>
    <li tag><div class=”class name”>LINK TEXT 2 HERE</div>
    Is it possible to edit the wp_list_pages part?

    Many thanks.

Viewing 2 replies - 16 through 17 (of 17 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    Is there something obvious I’m doing wrong

    Yeah. li.page_item page-item-4 a is too much info. It doesn’t refer to the item you think it does.

    Use either li.page_item a or li.page-item-4 a, they’ll work.

    page-item and page-item-4 are two different classnames.

    What I would like to be able to do is inject a class within the href based on the page id. I’m styling a list using the highlighting techniques with a class on the

    • and need to also style the href itself. Is there anyway to accomplish that?
    • so

      <li class="selected"><a href="/" class="iconnews">News</a></li>

Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘‘wp_list_page’ configuration?’ is closed to new replies.