[resolved] Inject CSS classes into menu items (4 posts)

  1. jasonkanzler
    Posted 2 years ago #

    As a follow up to my previous question...

    What is the best way to inject custom CSS classes into specific elements. I'm trying to apply 3 separate styles to my menu items (3 items with one style, 3 with another style, and 2 with yet another style).

    If possible, I would like to stay away from pseudo classes (ex. :first-of-type, :nth-of-type).

  2. acub
    Posted 2 years ago #

  3. nikeo
    Theme Author

    Posted 2 years ago #

    There is a simple way to add a class to each menu element in WordPress.
    More info and example here.

    Hope this helps and thanks for beeing a Customizr user!

  4. jasonkanzler
    Posted 2 years ago #

    @acub I will be reading through that tutorial soon. Thanks!

    @nikeo Perfect. Exactly what I was looking for. I had no idea that functionality existed in WP. It goes without saying, but awesome job with Customizr!


Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic