Happening now | Office Hours: Customizing Your Theme With Moeed | Ask your questions now!

Header menu customisation

Solved

Header menu customisation

motions
Visitor
3 0 0

Hi, I've been trying to find a way to remove the underline effect from the selected header menu button but it seems impossible and also I can't change the search icon because there isn't icon-search in the code editor. I would really appreciate if you could help me 🙂

 

 

Thank you!!

 

Accepted Solution (1)

Tech_Coding
Shopify Partner
519 133 131

This is an accepted solution.

You can add code by following these steps

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file

3. Paste the below code before </body> on theme.liquid
<style>
  .header__active-menu-item:before{
      width: unset !important;
  }
</style>
RESULT:

Tech_Coding_0-1748864168884.png

My reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.

my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.
Shopify UI Developer
Your Coffee Tips adds a little sweetness to my day.

View solution in original post

Replies 3 (3)

soodo
Shopify Partner
17 0 3

Hey Motions! Some Shopify themes add underline effects or icons via CSS or external libraries, so it’s not always obvious in the code editor.

Here's what I'd check:

Go to your theme's CSS file and see if you have something like: 

.header__menu-item--active {
text-decoration: underline;
}

You can override it by adding this to the bottom of your CSS file:

.header__menu-item--active {
text-decoration: none !important;
}

Hope this helps.

We Build Your Shopify Store,
You Grow Your Business.

Shopify Website Development | soodo.co
motions
Visitor
3 0 0

I have but still the same 😞

Tech_Coding
Shopify Partner
519 133 131

This is an accepted solution.

You can add code by following these steps

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file

3. Paste the below code before </body> on theme.liquid
<style>
  .header__active-menu-item:before{
      width: unset !important;
  }
</style>
RESULT:

Tech_Coding_0-1748864168884.png

My reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.

my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.
Shopify UI Developer
Your Coffee Tips adds a little sweetness to my day.