Topic summary
A user seeks help creating a custom hover effect for the menu in Shopify’s Dawn theme, sharing a screenshot as reference.
Proposed Solutions:
- Edit the theme’s
theme.scss.liquidfile to add custom CSS hover styles targeting menu elements (e.g., changing text and background colors on hover) - Alternatively, insert JavaScript code at the bottom of the
theme.liquidfile
Implementation Issue:
One user reports the hover effect works initially but the menu automatically closes when attempting to move the mouse over it, preventing proper interaction.
Status: The discussion remains open with an unresolved usability problem—the hover menu closes prematurely, making it non-functional for navigation.
To create a custom hover effect for the menu in the Dawn theme, you’ll need to modify the theme’s code. Here’s a general outline of the steps you can take:
- From your Shopify admin, go to “Online Store” and click on “Themes.”
- Find the Dawn theme and click on the “Actions” button, then select “Edit code.”
- In the code editor, locate the “theme.scss.liquid” file under the “Assets” folder.
- Open the “theme.scss.liquid” file and scroll to the bottom to add your custom CSS code.
To create a hover effect for the menu, you can use CSS selectors and properties to target the menu elements and define the desired styles. Here’s an example of how you can create a simple hover effect:
/* Apply hover effect to menu items */
.site-nav__link:hover {
color: red; /* Change the text color on hover */
background-color: yellow; /* Change the background color on hover */
/* Add any other styles you want for the hover effect */
}
i need this for my site: Office Curtains Dubai
Hello There,
- In your Shopify Admin go to online store > themes > actions > edit code
- Find Layout → theme.liquid and paste this at the bottom of the file:
Thank you for your response. It’s good to know that it’s worked for you. Kindly feel free to get back to me if you need any further assistance.
If helpful then please Like and Accept Solution.
the hover works but as soon as I try to move the mouse it will close automatically which makes the hover menu not work

