Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Remove search bar and move menu, theme empire

Solved

Remove search bar and move menu, theme empire

FlyNPlay
Tourist
6 0 2

Skærmbillede 2024-11-11 kl. 17.40.18.pngHi, 

 

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 ? 

Accepted Solution (1)

Made4uo-Ribe
Shopify Partner
9069 2166 2673

This is an accepted solution.

Hi @FlyNPlay 

Dop you mean like this? 

Made4uoRibe_0-1731345828114.png

If it is, try this one. 

  1. From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  2. Find the theme that you want to edit and click on "Actions" and then "Edit code".
  3. In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

@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%;
}
}

 

  • And Save.

 

 

Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better! 

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.

View solution in original post

Replies 2 (2)

Moeed
Shopify Partner
6326 1715 2068

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:

Moeed_0-1731343583269.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


Made4uo-Ribe
Shopify Partner
9069 2166 2673

This is an accepted solution.

Hi @FlyNPlay 

Dop you mean like this? 

Made4uoRibe_0-1731345828114.png

If it is, try this one. 

  1. From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  2. Find the theme that you want to edit and click on "Actions" and then "Edit code".
  3. In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

@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%;
}
}

 

  • And Save.

 

 

Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better! 

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.