Shopify themes, liquid, logos, and UX
To expand submenus in the Shopify Refresh theme by using code, you can modify the theme's Liquid and JavaScript files. Here’s a general approach:
Edit the header.liquid file
Go to Online Store > Themes > Actions > Edit Code.
Open the header.liquid file (or any other file responsible for the menu rendering).
Locate the section where your navigation links are created, usually in a loop.
Add code for submenus under each main menu item.
2. Add CSS for Submenus:
If there isn't a CSS file targeting submenus, add CSS to style them. Make sure submenus are initially hidden and expand on hover or click.
.submenu {To explore
display: none;
/* Add more styling as needed */
}
.menu-item:hover .submenu {
Thank you for your answer, but I can't find the precise place in the code where to write this...
Thank you for your answer, but I can't find the precise place in the code where to write this...
Please, share your store URL. Thanks!
Thanks for the info! Do you have a sample design? If it’s just expanding, only the box will be expanded.
Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025