WordPress.org

Ready to get started?Download WordPress

Ideas

Even & odd classes on menu items

  1. dabernathy89
    Member

    I understand that this isn't too hard for developers to implement using a custom walker, but I think it would make a lot of sense for this to be a default class included on menu items.

    Posted: 5 months ago #
  2. Mike Manger
    Member

    FYI you can select even/odd elements using the nth-child CSS selector. Something like .menu li:nth-child(even) { background: red; } should do what you want.

    Posted: 2 days ago #

RSS feed for this topic

Reply

You must log in to post.

  • Rating

    12345
    2 Votes
  • Status

    Sorry, not right now