Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi,
I got help earlier to remove the search bar, when i remove it everything looks very bad on the header.
Can someone help me, removing the search bar, then making the menu parallel with the logo, and also remove the shopping cart icon ?
Solved! Go to the solution
This is an accepted solution.
Hi @FlyNPlay
Dop you mean like this?
If it is, try this one.
@media only screen and (min-width: 749px){
header.site-header.site-header-nav--open {
display: flex;
}
.site-header .live-search, .site-header-cart {
display: none;
}
.site-header-main-content {
max-width: fit-content;
margin: 0;
}
.site-header-main.site-header--full-width {
max-width: fit-content;
margin: 0;
}
div#site-header-nav {
flex-grow: 2;
}
.site-header-main.site-header--full-width {
padding: 0;
}
header.site-header.site-header-nav--open {
padding-left: 5%;
}
}
Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!
Hey @FlyNPlay
Follow these Steps:
1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code in the bottom of the file above </body> tag
<style>
@media screen and (min-width: 768px) {
.live-search {
display: none !important;
}
.site-header-main-content {
justify-content: flex-start !important;
}
.site-header-cart {
display: none !important;
}
.site-header-main.site-header--full-width {
width: 50% !important;
}
div#site-header-nav {
width: 50% !important;
}
nav.site-navigation {
justify-content: flex-end !important;
}
}
</style>
RESULT:
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
This is an accepted solution.
Hi @FlyNPlay
Dop you mean like this?
If it is, try this one.
@media only screen and (min-width: 749px){
header.site-header.site-header-nav--open {
display: flex;
}
.site-header .live-search, .site-header-cart {
display: none;
}
.site-header-main-content {
max-width: fit-content;
margin: 0;
}
.site-header-main.site-header--full-width {
max-width: fit-content;
margin: 0;
}
div#site-header-nav {
flex-grow: 2;
}
.site-header-main.site-header--full-width {
padding: 0;
}
header.site-header.site-header-nav--open {
padding-left: 5%;
}
}
Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!
Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024