• I’m new at WP, though not at HTML/CSS/PHP/JS.

    I’m using wp_list_pages to create a table of contents navigation list in a sidebar on my site. Everything works fine but I have a specific style I want to apply to list items to achieve striping of the list (placing alternate items against differently colored backgrounds).

    Since wp_list_pages doesn’t give me an actual list to work with but rather displays its output in one fell swoop, I’m not sure how I can control the styling on individual list elements. Perhaps I need a different plugin like PageNav or Page List Plus?

Viewing 1 replies (of 1 total)
  • I had wanted to do something similar some time ago, but never got it working. So I took this as an incentive to try again. What I did for my purposes was to create a page template that I could assign to a page to show the list. That will not suit your needs directly, but hopefully it will give you a start.

    The code is here in wordpress.pastebin.ca. A new class is added to the links: evenlink and oddlink. You can use these to style the links in your css.

Viewing 1 replies (of 1 total)
  • The topic ‘Striping a Page List’ is closed to new replies.