• Is there any way to remove the <li class=”pagenav”> that appears before the title and the following <li class=”page_item”> for each page when displaying a list of your pages with wp_list_pages?

Viewing 1 replies (of 1 total)
  • Well my fellow Canuck, I probably did mine in the make-work-project way, but I basically copied the relevant functions from WP and then modified them to make a horizontal text bar in the footer on my site (pull up the source from the page and you can peruse the formating at the bottom of the page), without any of the list tags – just a plain text horizontal bar (which emboldens the link to the page you’re currently viewing).

    Although I’m sure there’s an easier way out there somewhere, this was the one that was easiest to figure out somehow, I’m not sure how, but it was. At any rate, it just involves putting the modified code into a custom functions file and then calling the modified functions (say instead of wp_list_pages you might use wp_list_pages_nocss) or whatever the new function is called.

    I’d be more than happy to post my code for you, you would just need to tweak the formatting of it to get the output as you’d like, it’s very straight forward and I’d even be willing to do up the format tweaking for you if need-be. Just let me know and I’ll post a link to the code and what-not!

    Cheers,
    Michael.

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