Celebrating 7 Years! Get up to $30 off GeneratePress Premium!

[Resolved] How to change the style of a single menu item

Home Forums Support [Resolved] How to change the style of a single menu item

Home Forums Support How to change the style of a single menu item

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #514955
    Vlad

    Hi!
    1. In one of the posts, you advised this code so that the link doesn’t do anything:

    .main-navigation .main-nav ul li[class*=”current-menu-“] > a {
    pointer-events: none;
    }

    In addition, I need to change the style of one menu item. Now I’m inserting this code in the Menu Structure – Navigation Label:

    <span style = “background-image: url (/images/01.gif); background-repeat: no-repeat; background-position: left center; padding: 0px 0px 0px 30px; color: # FF0000; font-family: Impact; font-size: 24px; “> MAIN PAGE </ span>

    Is it possible to make a CSS class from these codes to insert it into Menu Structure – CSS Classes?

    Thanks for your support!

    #515091
    Leo
    Staff
    Customer Support

    Hi there,

    Check out this method here for targeting a specific menu item: https://docs.generatepress.com/article/adding-buttons-navigation/

    Let me know if this helps.

    #515314
    Vlad

    Thank you, everything is fine.

    #515707
    Leo
    Staff
    Customer Support
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.