Black Friday sale! Get up to 25% off GP Premium! Learn more ➝

[Resolved] Menu colors

Home Forums Support [Resolved] Menu colors

Home Forums Support Menu colors

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1422887
    Gelu-Dănuț

    Hi,

    I want to make a site for a kids playground. For this, I want to have attractive colors, including menu items.
    Each menu item should have a different color. No menu item should have the color of the others.
    Thank you!

    #1423129
    Leo
    Staff
    Customer Support

    Hi there,

    You need give each menu item a unique custom class:
    https://docs.generatepress.com/article/using-the-wordpress-menu-builder/#custom-classes

    So if we have a class called black and a class called white then this would be the CSS:

    Then add this CSS:

    .main-navigation .main-nav ul li.black a {
        background-color: #000000;
    }
    .main-navigation .main-nav ul li.white a {
        background-color: #ffffff;
    }

    Adding CSS: https://docs.generatepress.com/article/adding-css/

    Let me know if this helps 🙂

    #1423351
    Gelu-Dănuț

    Thank you!

    #1423466
    Leo
    Staff
    Customer Support

    No problem 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.