hello,
I tried many codes mentioned already here, but nothing worked
i need to edit the size of the desktop menu font to make it bigger
Main issue: The OP wants to increase the desktop navigation menu font size; previous code attempts didn’t work.
Key actions and proposals:
Additional resource:
Notes:
Status: No confirmation that the fix worked yet; the thread remains open without a verified resolution.
hello,
I tried many codes mentioned already here, but nothing worked
i need to edit the size of the desktop menu font to make it bigger
Hi @Nu89
To change the desktop menu font size in your Shopify theme, you can follow these general steps:
Go to your Shopify admin panel.
Click on ‘Online Store’ and then on ‘Themes’.
Find your current theme, click on the ‘Actions’ dropdown, and then select ‘Edit Code’.
In the ‘Layout’ directory, open the theme.liquid file.
At the very bottom of the file, just before the closing tag, add the following code:
This code targets the desktop menu items using the CSS class .header__menu-item and the @media query ensures it only applies to screen widths 769px and above (desktop).
If this doesn’t work, the CSS class for the menu items might be different in your specific theme. You can inspect the menu elements using your browser’s developer tools to find the correct class name.
Alternatively, you can try adding !important to the CSS rule to override any existing styles:
Remember to replace .header__menu-item with the actual class name of your theme’s menu items if needed.
After saving the changes, clear your browser cache and refresh your store page to see the updated menu font size.
lustrellc
thank you for your detailed reply.
I appreciate the explanation and patience.
Hello @Nu89 ,
If you want to change the menu font without affecting other headings, please follow this tutorial. I hope you find it very helpful.
Thanks!