Shopify themes, liquid, logos, and UX
Good Morning. I'm trying to align the header menu hamburger icon to the right (next to the store icon), but I can't get it to align properly.
How can I properly align the menu icon to the right, next to the store icon?
I'm trying to achieve the attached file.
I'm using Orign Theme (https://themes.shopify.com/themes/origin/styles/default)
The store: https://voltaje.io/
Psw: leisag
Thank you so much.
Solved! Go to the solution
This is an accepted solution.
Hey @AlbertoVoltaje,
I missed one part,
Replace the earlier code with this
<style>
header-drawer {
grid-column: 4 !important;
margin-left: 10px !important;
}
header.header {
padding-right: 15px !important;
}
.menu-drawer {
transform: translateX(100%) !important;
left: auto !important;
right: 0;
}
.js details[open].menu-opening>.menu-drawer {
transform: translateX(0) !important;
}
</style>
Hey @AlbertoVoltaje,
Go to your theme's "Edit Code" Option, then in the search bar type "theme.liquid"
Below the tag "<head>" tag paste the following. Screenshot attached for reference.
<style>
header-drawer {
grid-column: 4 !important;
margin-left: 10px !important;
}
header.header {
padding-right: 15px !important;
}
.menu-drawer {
transform: translateX(100%) !important;
}
.js details[open].menu-opening>.menu-drawer {
transform: translateX(0) !important;
}
</style>
Screenshot is for reference only, the correct code to paste is the one shown above.
Thank you so much @ThePrimeWeb that worked like a charm!
But now, the side panel is still opening from left instead of right:
I appreciate your help.
This is an accepted solution.
Hey @AlbertoVoltaje,
I missed one part,
Replace the earlier code with this
<style>
header-drawer {
grid-column: 4 !important;
margin-left: 10px !important;
}
header.header {
padding-right: 15px !important;
}
.menu-drawer {
transform: translateX(100%) !important;
left: auto !important;
right: 0;
}
.js details[open].menu-opening>.menu-drawer {
transform: translateX(0) !important;
}
</style>
Thank you, I was not able to achieve this alone and you was a life-saver!
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