- Replace the site-nav.liquid snippet with the one below.
- Add the css below to the bottom of styles.scss.liquid
- If you haven't already, create your sub linklists by folowing the same procedure as mentioned in this doc
- Result:
Created
April 6, 2015 17:17
-
-
Save kyledurand/f13a2c767817199414d0 to your computer and use it in GitHub Desktop.
Shopify Minimal Theme Sub Navigation (Nested) Menus
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nav.main ul > li > ul > li.dropdown { | |
position: relative; | |
ul.dropdown { | |
left: 175px; // if the gutters or any of the menu padding has been altered then this and the 'top' value below might have to be altered to match. | |
top: -6px; | |
position: absolute; | |
opacity: 0; | |
display: none; | |
// the remainder is taken from line 302. Unfortunately we can't @extend nested styles. | |
background: {{ settings.nav_dropdown_background_color }}; | |
list-style: none outside none; | |
padding: 5px 15px; display: none; | |
min-width: 180px; | |
z-index: 99999; | |
border: 1px solid {{ settings.border_color }}; | |
} | |
} |
Can't get this to work either. Is it active still?
Cheers
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
help i do not find the styles.scss.liquid to make the step 2