[Resolved] Button in the menu

Home Forums Support [Resolved] Button in the menu

Home Forums Support Button in the menu

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1265225
    Jose

    Hi,

    I would like to highlight the link to the store with a button, in the menu. I have put the same CSS as on another page I made but it doesn’t work for me, could you help me?

    In the next page you can see my example:

    https://workprojects.es/

    #1265254
    Leo
    Staff
    Customer Support

    Hi there,

    Have you tried this?
    https://docs.generatepress.com/article/adding-buttons-navigation/

    Let me know 🙂

    #1265292
    Jose

    Hi, it works, thank!

    And to add another style with hover?

    #1265318
    Leo
    Staff
    Customer Support

    This CSS would include the hover state:

    @media (min-width:769px) {
        .main-navigation .main-nav ul li.nav-button a {
            background-color: #ffffff;
            border: 2px solid #000000;
            color: #000000;
            line-height: 35px; /*this number will likely need to be adjusted*/
        }
        .main-navigation .main-nav ul li.nav-button a:hover {
            background-color: #ffffff;
            border: 2px solid #000000;
        }
    }
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.