[Resolved] Rounded corners on primary menu current item

Home Forums Support [Resolved] Rounded corners on primary menu current item

Home Forums Support Rounded corners on primary menu current item

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1558770
    Diana

    Hello,
    I’d like to have rounded corners on the active (current) menu item.
    And also when a menu item is in the on hover position.
    I found the on hover CSS here and it worked!
    https://generatepress.com/forums/topic/navigation-rounded-corners/

    .main-navigation .main-nav ul li a:hover {
    border-radius: 15px;
    }

    I changed ‘hover’ to ‘current’ in the above CSS. First I thought it worked for the current menu item, but it doesn’t. I can’t code, so I have no further ideas.
    Can you give me the correct CSS for the current menu item?
    Thanks.

    #1559191
    Leo
    Staff
    Customer Support

    Hi there,

    Any chance you can link us to the site in question?

    You can use the private information field.

    Let me know 🙂

    #1561659
    Diana

    OK, it’s in the private information field.

    #1561811
    Leo
    Staff
    Customer Support

    Hi there,

    Does this help?

    .main-navigation .main-nav ul li[class*="current-menu-"] > a {
        border-radius: 5px;
    }
    #1564148
    Diana

    Yes, it works! Thank you 🙂

    #1564202
    Leo
    Staff
    Customer Support

    No problem 🙂

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