How can I adjust only the menu font size on a desktop version?

Topic summary

A user seeks to increase the menu font size specifically for the desktop version of their Shopify store using the Stiletto theme.

Solution Provided:

  • Navigate to Shopify admin → Online Store → Themes → Actions → Edit code
  • Locate the CSS file (base.css, style.css, or theme.css) in the Assets folder
  • Add a media query targeting desktop screens (min-width: 960px)
  • Apply custom font-size styling to the header navigation links
  • The suggested CSS code targets .nav.header__links.header__links-primary span with adjustable pixel values

Status: The solution includes a visual example showing the result, and the responder requests the original poster mark the answer as solved if it helps.

Summarized with AI on November 17. AI used: claude-sonnet-4-5-20250929.

Hi all,

I would like to know how to only adjust the font size of the menu. Only the Desktop version.

My website as a reference:

The theme is: Stiletto.

https://softandsassys.com/

Thanks!

1 Like

Hi @Maelaw

Try 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:
@media only screen and (min-width:960px){
nav.header__links.header__links-primary span {
    font-size: 20px;
}
}

I hope it help.

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!

1 Like