All things Shopify and commerce
Hello everybody.
I have added a header in shopify but unfortunetly in spans across two rows. First row is the icon, the second row is the menu and the cart.
How can I make this on one line on both mobile and desktop?
And also, how can I get rid of the "Menu" label/span on the mobile view?
https://repharma.bg/products/joint-cure
I would really appreciate any suggestions since programming isn't my strongest skill.
Thank you!
P.S I am using BOOM theme.
Solved! Go to the solution
This is an accepted solution.
Hi @repharma
Check this one.
From your Shopify admin dashboard, click on "Online Store" and then "Themes"
Find the theme that you want to edit and click on "Actions" and then "Edit code".
In the "theme. Liquid" file. Find the </body> tag and paste the code below before the tag.
<style>
@media only screen and (max-width: 767px) {
header #AccessibleNav {
display: grid;
grid-template-columns: 1fr 1fr 0.5fr;
}
.mobile-nav-container.mobile-nav-offcanvas-right.dt-header-menu {
grid-column: 3;
grid-row: 1;
width: fit-content;
}
.site-header__links.dt-sc-flex {
grid-column: 3;
grid-row: 1;
width: 50%;
justify-self: end;
}
.logo {
grid-column: 2;
grid-row: 1;
}
}
</style>
And Save.
Result:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. Paste the below code before </body> on theme.liquid
<style>
@media only screen and (max-width: 767px) {
header .logo-alignment:not(.secondary-menu-enabled) #AccessibleNav {
display: flex!important;
}
.mobile-nav-container .menu-trigger span {
display: none!important
}
#header .row {
margin: 0!important;
}
#AccessibleNav .logo {
margin-right: 40%!important;
}
}
</style>
Result:
B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.
B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.
BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now
Thanks for the quick answer.
I added it, but still nothing 😕
did you save it yet?
B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.
B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.
BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now
Yes
I don't see it appearing on your site. Are you sure you've saved it?
If it still not work try to add that before </html>
B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.
B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.
BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now
This is an accepted solution.
Hi @repharma
Check this one.
From your Shopify admin dashboard, click on "Online Store" and then "Themes"
Find the theme that you want to edit and click on "Actions" and then "Edit code".
In the "theme. Liquid" file. Find the </body> tag and paste the code below before the tag.
<style>
@media only screen and (max-width: 767px) {
header #AccessibleNav {
display: grid;
grid-template-columns: 1fr 1fr 0.5fr;
}
.mobile-nav-container.mobile-nav-offcanvas-right.dt-header-menu {
grid-column: 3;
grid-row: 1;
width: fit-content;
}
.site-header__links.dt-sc-flex {
grid-column: 3;
grid-row: 1;
width: 50%;
justify-self: end;
}
.logo {
grid-column: 2;
grid-row: 1;
}
}
</style>
And Save.
Result:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
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