Shopify themes, liquid, logos, and UX
Hi there,
I would like the navigation menu to have the same font as the filter buttons (PT sans, character spacing 2 I think). How can I achieve that? I can only change the font separately for the (sub)headers and body text in the editor I think!
Thanks!
Solved! Go to the solution
This is an accepted solution.
In header page insert this code
<style>
.js .site-nav.mega-menu li a {
letter-spacing: 7px;
}
</style>
This is an accepted solution.
Yes, May be you can. try this
.js .gm-menu-installed .gm-item.gm-level-0 > .gm-target > .gm-text {
font-family: 'PT Sans' !important;
}
This is an accepted solution.
In header page insert this code
<style>
.js .site-nav.mega-menu li a {
letter-spacing: 7px;
}
</style>
Hi!
Which file should I add it to?
I tried adding it in the editor but nothing happened
open header.liquid and above code at the top.
Thanks! And is it possible to apply PT Sans font to this too?
This is an accepted solution.
Yes, May be you can. try this
.js .gm-menu-installed .gm-item.gm-level-0 > .gm-target > .gm-text {
font-family: 'PT Sans' !important;
}
thanks so much, that both worked perfectly! is there a way to only apply the letter spacing to the 4 menu items at the top? (not the dropdown submenus)
okay try this
<style>
.js .site-nav.mega-menu li.gm-level-0 a {
letter-spacing: 7px;
}
</style>
Thank you @saurav9005 Is it possible to make those 4 menu items in bold too?
I tried adding below line but it didn't do anything:
font-style: bold;
@saurav9005 wrote:okay try this
<style>
.js .site-nav.mega-menu li.gm-level-0 a {
letter-spacing: 7px;
}
</style>
It is font-weight not font-style. please see the code
<style>
.js .site-nav.mega-menu li.gm-level-0 a {
letter-spacing: 7px;
font-weight:bold !important;
}
</style>
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024