• Using wp_list_pages do we have any options to indent the subpages on the display?
    page0
    page1 (Parent is identified as page0)
    page2 (Parent is identified as page0)
    page3
    page4 (Parent is identified as page3)
    page5 (Parent is identified as page3)

    Parent gets the sort order correct, but all the items display in a straight line. ooking at the cdoex for wp_list_pages, I can see the options for sorting out what displays, and some css options.

    But I am missing the option to put some sort of visual indentation in the navigation menu for the pages. Any help appreciated

Viewing 1 replies (of 1 total)
  • Offhand, I think it creates a new list for the subpages. So assuming your list is in the sidebar and labeled with an id, you’d use this css to indent the subpages:

    #sidebar ul { // this is the ul for the pages
      padding: 0 0 0 15px;
    }
    #sidebar ul ul { // this is the ul for the subpages
      padding: 0 0 0 10px;
    }

    Obviously tweak as you see fit to get it right.

Viewing 1 replies (of 1 total)
  • The topic ‘wp_list_pages indent subpges’ is closed to new replies.