Re: Change the font of sub-menu or extend the length

Solved

Change the font of sub-menu or extend the length

sux
Tourist
9 1 1

Hi everyone,

 

as you can see the screenshot, I want to change the font of sub-menu or change the length of the menu. I have tried some codes in the forum, but did not work. 

 

I tried 

 

@media screen and (min-width: 990px) {
.header__submenu .header__menu-item.header__menu-item {
font-size: 16px !important;
}
}

 

in theme.css, not work. The theme is "Envy"

 

Do you have any suggestions? 

sux_0-1695134705788.png

 

Accepted Solution (1)
David_SHT
Globetrotter
605 125 129

This is an accepted solution.

You can add code: 

<style>
.dropdown-submenu__link {
  font-size: 12px !important;
}
.dropdown-menu {
  min-width: 12rem !important;
}
</style>

If I managed to help you then, don’t forget to Like it and Mark it as Solution!

David | SalesHunterThemes team

We create fast Shopify themes, focusing on exceptional performance and seamless experience across all devices.

Try our Electro theme Free! (Now at Black Friday price)

View solution in original post

Replies 10 (10)

lunaworks
Shopify Partner
452 44 48

You want to change the font or the font-size?

And extend the length how?

If my solution fixed your issue, please mark my solution as solved.
In need of custom solutions? Please DM.

David_SHT
Globetrotter
605 125 129

Hi @sux ,

This is David at SalesHunterThemes.

You can try to follow these steps:

Go to Online Store -> Themes -> Actions -> Edit code.

Go Assets folder -> theme.liquid file.

Add the following code in the bottom of the file above </body> tag

 

<style>
.dropdown-submenu,
.dropdown-submenu__linklist li a {
  font-size: 12px !important;
}
</style>

 

If I managed to help you then, don’t forget to Like it and Mark it as Solution!

David | SalesHunterThemes team

We create fast Shopify themes, focusing on exceptional performance and seamless experience across all devices.

Try our Electro theme Free! (Now at Black Friday price)

sux
Tourist
9 1 1

After I click save and then preview the store, it still looks like this: 

sux_0-1695199448109.png

 

sux_1-1695199535319.png

 

David_SHT
Globetrotter
605 125 129

Hi @sux ,

Would you please share your website URL

if your website is password protected then also provide the password.

We create fast Shopify themes, focusing on exceptional performance and seamless experience across all devices.

Try our Electro theme Free! (Now at Black Friday price)

sux
Tourist
9 1 1
David_SHT
Globetrotter
605 125 129

Hi @sux ,
You can try again: 

<style>
.dropdown-submenu__link {
   font-size: 12px !important;
}
</style>

David_SHT_0-1695201187950.png

If I managed to help you then, don’t forget to Like it and Mark it as Solution!

David | SalesHunterThemes team

 

We create fast Shopify themes, focusing on exceptional performance and seamless experience across all devices.

Try our Electro theme Free! (Now at Black Friday price)

sux
Tourist
9 1 1

Wow, thank you, that really helps!

 

Btw, do you know how to extend the length of the sub-menu? I want to find the best combination of fonts and length. 

 

 

David_SHT
Globetrotter
605 125 129

Is this what you mean?

David_SHT_0-1695203675697.png

 

We create fast Shopify themes, focusing on exceptional performance and seamless experience across all devices.

Try our Electro theme Free! (Now at Black Friday price)

sux
Tourist
9 1 1

yes!

David_SHT
Globetrotter
605 125 129

This is an accepted solution.

You can add code: 

<style>
.dropdown-submenu__link {
  font-size: 12px !important;
}
.dropdown-menu {
  min-width: 12rem !important;
}
</style>

If I managed to help you then, don’t forget to Like it and Mark it as Solution!

David | SalesHunterThemes team

We create fast Shopify themes, focusing on exceptional performance and seamless experience across all devices.

Try our Electro theme Free! (Now at Black Friday price)