All things Shopify and commerce
I want to change my menu arrow from this
To this
I also want menu to flow nicely, the way it glides in smoothly
This is my menu now www.stitchesdxb.ae
I want it to flow like this following website
Solved! Go to the solution
This is an accepted solution.
Hello @stitchesdxb, Please follow these steps to add this CSS code:
1. Go to your Online Store
2. Click on "Themes"
3. Select "Edit code"
4. Open your snippets -> header-drawer.liquid file.
// Add snippets -> drawer-submenu-arrow.liquid
// add the below svg code into that file.
<svg aria-hidden="true" focusable="false" fill="none" width="12" class="icon icon-chevron-right icon--direction-aware" viewBox="0 0 10 10">
<path d="m3 9 4-4-4-4" stroke="currentColor" stroke-linecap="square"></path>
</svg>
After add snippet file of new arrow and call it in the header-drawer.liquid file add please follow this steps to add CSS.
1. Go to your Online Store
2. Click on "Themes"
3. Select "Edit code"
4. Open your CSS file. If you have a custom CSS file, open that instead.
5. If you can't find your custom CSS file, open "base.css"
6. Add the following CSS code at the end of the file.
svg.icon.icon-chevron-right.icon--direction-aware {
position: absolute;
right: 3rem;
top: 50%;
transform: translateY(-50%);
}
.menu-drawer__close-button svg.icon.icon-chevron-left.icon--direction-aware{
transform: rotate(0deg);
margin-right: 1rem;
}
See the screenshots below,
Feel free to reach out if you have any questions or need assistance.
Best Regards,
DWS.
This is an accepted solution.
Please render new arrow here.
This is an accepted solution.
@stitchesdxb Please update the CSS also ,
.menu-drawer__close-button svg.icon.icon-chevron-right.icon--direction-aware {
transform: rotate(180deg);
top: unset;
left: 10px;
}
Hello @stitchesdxb
This will happen with code, it has svg in it. I can do this if you give me access to your store. This will not happen without coding. It has svg images, just change that.
Thanks
This is an accepted solution.
Hello @stitchesdxb, Please follow these steps to add this CSS code:
1. Go to your Online Store
2. Click on "Themes"
3. Select "Edit code"
4. Open your snippets -> header-drawer.liquid file.
// Add snippets -> drawer-submenu-arrow.liquid
// add the below svg code into that file.
<svg aria-hidden="true" focusable="false" fill="none" width="12" class="icon icon-chevron-right icon--direction-aware" viewBox="0 0 10 10">
<path d="m3 9 4-4-4-4" stroke="currentColor" stroke-linecap="square"></path>
</svg>
After add snippet file of new arrow and call it in the header-drawer.liquid file add please follow this steps to add CSS.
1. Go to your Online Store
2. Click on "Themes"
3. Select "Edit code"
4. Open your CSS file. If you have a custom CSS file, open that instead.
5. If you can't find your custom CSS file, open "base.css"
6. Add the following CSS code at the end of the file.
svg.icon.icon-chevron-right.icon--direction-aware {
position: absolute;
right: 3rem;
top: 50%;
transform: translateY(-50%);
}
.menu-drawer__close-button svg.icon.icon-chevron-left.icon--direction-aware{
transform: rotate(0deg);
margin-right: 1rem;
}
See the screenshots below,
Feel free to reach out if you have any questions or need assistance.
Best Regards,
DWS.
Thanks! This worked.. but the arrow is attached to the word not like your screenshot..
Please add the CSS for this,
1. Go to your Online Store
2. Click on "Themes"
3. Select "Edit code"
4. Open your CSS file. If you have a custom CSS file, open that instead.
5. If you can't find your custom CSS file, open "base.css"
6. Add the following CSS code at the end of the file.
svg.icon.icon-chevron-right.icon--direction-aware {
position: absolute;
right: 3rem;
top: 50%;
transform: translateY(-50%);
}
.menu-drawer__close-button svg.icon.icon-chevron-right.icon--direction-aware {
transform: rotate(180deg);
margin-right: 3rem;
top: unset;
left: 15px;
}
Perfect Thank you!
now for the back button I also want it to be the same icon
This is an accepted solution.
Please render new arrow here.
This is an accepted solution.
@stitchesdxb Please update the CSS also ,
.menu-drawer__close-button svg.icon.icon-chevron-right.icon--direction-aware {
transform: rotate(180deg);
top: unset;
left: 10px;
}
Thank you so much! it works now.. for the other menu issue (the smooth transition once clicked on the menu item) do you know how I could achieve that? just like this website: https://milkitbaby.shop/
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024