How to Increase Shopify Header Menu Text Size: A Step-by-Step Guide

Having a well-designed and readable header menu is crucial for enhancing the user experience on your Shopify store. If you want to increase the text size of your header menu items, this article will guide you through the process. We’ll be using the Dawn theme as an example, but you can apply these instructions to other Shopify themes with slight modifications.

How to Increase Shopify Header Menu Text Size: A Step-by-Step Guide

Step 1: Accessing the Shopify Code Editor Log in to your Shopify admin dashboard and navigate to “Online Store” > “Themes.” Look for your active theme and click on the “Actions” dropdown menu, then select “Edit code.” This will open the Shopify Code Editor, allowing you to make the necessary changes.

Step 2: Locating the CSS File In the Code Editor, you’ll see a list of files on the left-hand side. Find the CSS file that controls the overall styles of your theme. It might be named something like “Base.css” or “theme.css.” Locate and click on this file to open it for editing.

Step 3: Adding Custom CSS Code Scroll to the bottom of the CSS file and create a new section to add your custom CSS code. Copy and paste the following code snippet into the file:

/* Changes header menu text size */
summary.header__menu-item.list-menu__item.link.focus-inset,
a.header__menu-item.header__menu-item.list-menu__item.link.link--text.focus-inset {
    font-size: 26px !important;
}

Step 4: Adjusting the Font Size In the code snippet provided, the font-size property is set to 26px. You can modify this value to increase or decrease the text size according to your preference. Feel free to experiment with different font sizes until you find the one that suits your needs.

Step 5: Saving and Testing Once you’ve made the desired changes, click the “Save” button to save the modifications. Preview your store to see the updated header menu with increased text size. If needed, adjust the font size value further until you achieve the desired result.

By following these steps and applying the custom CSS code, you can easily increase the text size of your Shopify header menu. Remember to save your changes and test them in the preview mode to ensure the desired effect is achieved. With a larger font size, you can improve the readability and visual appeal of your header menu, providing a better user experience for your customers.



As an Amazon Associate we earn from qualifying purchases through some links in our articles.