Ready to get started?Download WordPress


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

  1. jasonkanzler
    Posted 9 months 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 9 months ago #

  3. nikeo
    Theme Author

    Posted 9 months 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 9 months 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!



You must log in to post.

About this Theme

About this Topic