[Resolved] Artisan menu style

Home Forums Support [Resolved] Artisan menu style

Home Forums Support Artisan menu style

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #790280
    Ketil

    Hello.
    I’m using Generatepress Premium, and Artisan from the site library. I have made it a “one page”-setup, where main menu points to anchors on the page. Side effect is that all links in main menu now has “active” style ( overline ).
    How do I remove the overline? ( css was to complex for me to figure out what style to put in css )

    #790296
    Leo
    Staff
    Customer Support

    Hi there,

    So you want to keep the hover effect right?

    If so then go to Additional CSS field in the customizer and replace:

    .main-navigation .menu > .menu-item > a:hover::after, 
    .main-navigation .menu > .menu-item > a:focus::after, 
    .main-navigation .menu > .current-menu-item > a::after {
        width: 30px;
    }

    With:

    .main-navigation .menu > .menu-item > a:hover::after, 
    .main-navigation .menu > .menu-item > a:focus::after {
        width: 30px;
    }

    Let me know πŸ™‚

    #790302
    Ketil

    Yes, worked, thanks!

    #790322
    Leo
    Staff
    Customer Support

    No problem πŸ™‚

    #886120
    Heather

    i tried this but it didnt work. Id like to get rid of the hover line above when active.

    #886310
    David
    Staff
    Customer Support

    Hi there,

    would you mind raising a new topic where you can add your Site URL so we can take a look and give you 100% focus.

    #1023885
    Dan

    How does one remove the overline completely from all active menu items?

    This tutorial doesn’t seem to explain that…?

    #1023903
    Leo
    Staff
    Customer Support

    Hi there,

    Modify this block of CSS in the Additional CSS field in the customizer:

    .main-navigation .menu > .menu-item > a:hover::after,
    .main-navigation .menu > .menu-item > a:focus::after,
    .main-navigation .menu > .current-menu-item > a::after{
        width: 30px;
    }

    to this

    .main-navigation .menu > .menu-item > a:hover::after,
    .main-navigation .menu > .menu-item > a:focus::after {
        width: 30px;
    }

    Let me know if this helps πŸ™‚

    #1023922
    Dan

    Yes, that does work! Not sure how I missed it the first time or why it didn’t apply. Probably page caching.

    Thank you!

    #1024492
    Leo
    Staff
    Customer Support

    No problem πŸ™‚

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