I want to change the font size of the text in my header menus. My website is www.ozuriindia.com
Topic summary
A user seeks to modify the font size of their header menu text on their Shopify store (www.ozuriindia.com).
Solutions Provided:
Multiple community members offered CSS code solutions with similar approaches:
- Navigate to: Online Store → Themes → Edit code
- Locate the CSS file (typically
theme.css,style.css, orbase.cssin the Assets folder) - Add custom CSS at the bottom of the file
Recommended CSS snippets:
.header__primary-nav-item.a.block.h6 { font-size: 18px; }(suyash1).header__primary-nav-item.a.block.h6 { font-size: 16px; }(devcoders)li.header__primary-nav-item .h6 { font-size: 1.5rem; }(Made4uo-Ribe)
One responder clarified whether the change should apply only to the main navigation menu or also include submenus. Screenshots were shared showing the expected results. The discussion appears to provide working solutions, though no confirmation of implementation from the original poster is visible.
@ozuriindia - please add this css to the very end of your theme.css file and check
.header__primary-nav-item a.block.h6{font-size: 18px;}
Hi @ozuriindia
- Go to Online Store → Theme → Edit code.
- Find the file assets/theme.css and paste the code below at the bottom of the file."
.header__primary-nav-item a.block.h6
{
font-size: 16px;
}
Hi @ozuriindia
Only the nav menu? Not including the submenu?
Check this one,
From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
Find the theme that you want to edit and click on “Actions” and then “Edit code”.
In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
li.header__primary-nav-item .h6 {
font-size: 1.5rem;
}
And Save.
Result:
Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!


