• Resolved prak1

    (@prak1)


    Hello,

    I have this main menu, an underline is shown on hover. How can I keep the same underline when that page is active? Also, there is space between the menu text and the underline. How can I remove this?

    I’m using “Go” Theme.

    Thank you,
    Prak

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @prak1

    Can you share a link to your site so we can take a look and provide CSS that will suit you site?

    Evan

    Thread Starter prak1

    (@prak1)

    Hi @eherman24,

    Here is the link (xxxx)

    Thanks in advance.


    Prak

    • This reply was modified 4 years, 5 months ago by prak1.

    Hi Prak,

    Give the following a shot:

    .primary-menu li.current-menu-item a:after {
       opacity: 1;
    }

    That will show the underline for the current menu item.

    If you want to remove the space between the underline and the word, you need to tweak the underline itself and shift it up.

    Adding to the code above, you could do the following (Adjusting the value in bottom: 6px; as needed, to increase/decrease the distance) to remove the space between the words and the underline (This will tweak the underline when hovering over menu items, as well):

    .primary-menu li.current-menu-item a:after,
    .primary-menu a:hover:after {
       bottom: 6px;
       opacity: 1;
       position: absolute;
    }

    You can add the above CSS code to your themes ‘Additional CSS’ section inside of the customizer. From the dashboard you get navigate there by going to ‘Appearance > Customize > Additional CSS‘.

    Let us know if that helps!

    Evan

    Thread Starter prak1

    (@prak1)

    Hi Evan,

    I used the second one. The bottom spacing part, left it as it was. It looks better now.

    Thank you for your help. I appreciate it.

    Best,
    Prak

    @prak1

    No problem at all – glad I could help out. Have a great rest of your day!

    Evan

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Highlighting the Active Menu Option’ is closed to new replies.