How can I underline an active navigation link in the header?

Hello,

In the header I have 4 menu items. 3 of them link to pages and one links to the booking app page.

And this one is not underlined when active.

I tried to add !important to text-decoration, but it did not help.

Hover works fine though.

Can anyone help?

Thanks!

@ArminasZ

Sorry you are facing this issue, it would be my pleasure to help you.

Welcome to the Shopify community! :blush:
Thanks for your good question.

Please share your site URL,
I will check out the issue and provide you a solution here.

1 Like

@KetanKumar

Thank you very much!

Site url is: https://philmiodev.myshopify.com

1 Like

@ArminasZ

Your store is password protected Please share the storefront password.

Thanks!

@ArminasZ

if you have front end password is confidential so please to a personal message as you like.

@ArminasZ

i have check this bt your page was third part url doesn’t shopify allow shopify

@KetanKumar

Sorry, I did not understand it very well.

@dmwwebartisan

Hello again,

The store name: https://philmiodev.myshopify.com

Password: devjobs

Thanks!

@ArminasZ

Please share a screenshot of what do you want exactly.

Thanks!

Hi @ArminasZ ,

To change you follow the instruction:

  1. Go to Online Store->Theme->Edit code
  2. Asset->/base.css->paste below code at the bottom of the file:
.header__menu-item span {
    text-decoration: underline !important;
}

I hope it would help you.

@AvadaCommerce

It did not work..

Thank you for the option though!

@ArminasZ

Please add the following CSS code to your assets/base.css bottom of the file.

a.header__menu-item:active, a:hover {
    outline: 0;
    text-decoration: underline !important;
}

Thanks!

@Zworthkey

You have sent me a DM.

Sorry, but Shopify does not allow me to reply: it says I have “reached the limit of private messages” (what??).

@ArminasZ

Please add the following CSS code to your assets/base.css bottom of the file.

a.header__menu-item:active, a:hover {
    outline: 0;
    text-decoration: underline !important;
}

Thanks!

Let me know if not working.

@dmwwebartisan

Did not work…

To clarify I want Katalogas to be underlined when active (I’m now on that page). The thing is that this page comes from app. And in navigation Katalogas is a link to that app search page.

@ArminasZ

Please add the following CSS code to your assets/base.css bottom of the file.

your no added code base.css file please add code.

Thanks!

1 Like

@dmwwebartisan

Alright, added!

@ArminasZ

Please check following screenshot

1 Like

@dmwwebartisan

Silly mistake…

Thank you, changed.

1 Like

@dmwwebartisan

Shall I also make changes in global.js file to make it work?