Shopify themes, liquid, logos, and UX
Can any of you help me center all of the items in my hamburger menu. I have added code to make the menu open across the whole screen, now i just need the links to be lined up in the middle like how the logo is. i have included picture of what i am looking to do . my site is ysamani.com thank you for any and all help.
Solved! Go to the solution
This is an accepted solution.
Hello There,
1. In your Shopify Admin go to online store > themes > actions > edit code
2. Find Asset -> base.css and paste this at the bottom of the file:
.list-menu__item {
display: inherit!important;
text-align: center;
}
This is an accepted solution.
Hi @ddai
I hope you are doing good and welcome to the Shopify Community!
I am San from MS Web Designer.
Please add this css in your bottom of the css file:
.menu-drawer__menu .list-menu__item {justify-content: center;}
Regards,
San
If it’s helpful to you, please mark it as a solution.
Need Help with Shopify Design, Migration, Speed, or Custom tasks?
email: hi@mswebdesigner.com
Try Our Conversion Booster app to get more sales | Connect Our Founder Linkedin
Hello @ddai ,
You can try to follow these steps:
var menuWidth = $(".mobile-nav__list").width();
var windowWidth = $(window).width();
var offset = (windowWidth - menuWidth) / 2;
$(".mobile-nav__list").css("left", offset);
Hope this can help. Let us know if you need any further support.
Ali Reviews team.
I am not sure where to put it. I have tried under component_menu_drawer.css and theme-editor.js with no luck
Hi, @ddai
Greetings from the Store Watchers Support Team! Happy to help you today.
1. Go to online store > theme > edit code > assets > base.css(file) and Paste the below code at the bottom of the file -> Save
.menu-drawer__menu .list-menu__item {
justify-content: center;
}
After applying the above CSS code , it will show like the following screenshot:
Let me know If need further assistance
Regards,
Store Watchers Support Team
You all are the best. Thank you !
This is an accepted solution.
Hello There,
1. In your Shopify Admin go to online store > themes > actions > edit code
2. Find Asset -> base.css and paste this at the bottom of the file:
.list-menu__item {
display: inherit!important;
text-align: center;
}
This is an accepted solution.
Hi @ddai
I hope you are doing good and welcome to the Shopify Community!
I am San from MS Web Designer.
Please add this css in your bottom of the css file:
.menu-drawer__menu .list-menu__item {justify-content: center;}
Regards,
San
If it’s helpful to you, please mark it as a solution.
Need Help with Shopify Design, Migration, Speed, or Custom tasks?
email: hi@mswebdesigner.com
Try Our Conversion Booster app to get more sales | Connect Our Founder Linkedin
You all are the best. Thank you !!
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By 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, 2024