Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi danny – jeez, pastebin is molasses running uphill in January tonight…. in the absence of half an hour to wait on it, try this:

    Set up different classes in the css (like, .lite {background:#FFF;} and .dark (background:#000;} as a for instance). Then add the classes to the pertinent h2s and lis in your sidebar and see what that gets you.

    Might need to do some further tweaking, maybe set those classes to display:block; or something depending….

    Thread Starter dannybcastillo

    (@dannybcastillo)

    It looks like I was tried and didn’t explain well last night.

    I follow what you said, but I would like this to only happen to function that I call. Example: <?php get_links(); ?>

    ul>
    li></li
    li></li
    li></li
    li></li
    etc….
    /ul>

    I would like each list item to alternate background colors.

    I know in postmetadata you can use alt {after the declaring the class name}. How can I do that here?

    I am also sorry that I didn’t validate my page before showing the sidebar. Here’s the new code: https://pastebin.com/783421

    Here’s an image also: https://www.dannycastillo.com/wp/?p=119

    Ah, okay, I get it…. and I don’t know how you would do that without hacking core files. Maybe there’s a brighter person than me around today who can help with that.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘list/s with alternating background color?’ is closed to new replies.