Remove search bar in Empire theme

Solved

Remove search bar in Empire theme

nickcho
Visitor
2 0 1

Hi all, I just updated my Shopify site from a very old version of Empire to the latest version. 

 

I remember having to go into the code to remove the search bar from the site completely (I don't forsee I'd need it) because it's cluttering the header. Now with the updated version, I can't for the life of me seem to figure out, after much Googling, how to remove the search bar from the site.

 

I tried the methods in this image below, but Empire doesn't appear to have a base.css file in the code. Only theme.css.liquid, but if I add that clipped code to the end of that file, it doesn't seem to do anything. 

Screenshot 2024-08-02 at 11.21.38 AM.png

 

Any help would be appreciated! Here's my site if that helps.

Accepted Solution (1)

Made4uo-Ribe
Shopify Partner
7760 1877 2298

This is an accepted solution.

Hi @nickcho 

Do you mean like this? Do you want to center the Logo? it will be automatic center if we take out the serch bar. 

Made4uoRibe_0-1722626537196.png

If it is check this one. 

From you Admin page, go to Online Store > Themes

Select the theme you want to edit

Under the Asset folder, open the main.css(base.css, style.css or theme.css)

Then place the code below at the very bottom of the file.

 

.live-search {
    display: none;
}

 

And Save. 

What i cant see you have theme.css file on the asset folder. Let me know the result. Thanks!

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.

View solution in original post

Replies 4 (4)

BSSCommerce-B2B
Shopify Partner
1407 386 450

Hi @nickcho 

I have reviewed your requirement, You can follow my instructions! 


Step 1: Go to Admin -> Online store -> Theme > Edit code:

Find the file  theme.css.liquid and you fine the code in line 22554 and delete the code 

@media screen and (min-width: 1024px) {
  .site-header-nav--open .site-navigation-wrapper {
    display: block;
  }
}

 

 

BSSCommerceB2B_0-1722624760106.png

 

You save and  test on you store 

BSSCommerceB2B_1-1722624948713.png

Plan2 : 
You can add the code in to the end of the file. theme.css.liquid

.site-navigation-wrapper {
display :none 
}

Step 2: Save your code and reload this page.

 

I hope these instructions will help you. If they are helpful, please give us likes and mark as the solution.

Have a nice day sir! 

 

 

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 I Donate Us Here!

Made4uo-Ribe
Shopify Partner
7760 1877 2298

This is an accepted solution.

Hi @nickcho 

Do you mean like this? Do you want to center the Logo? it will be automatic center if we take out the serch bar. 

Made4uoRibe_0-1722626537196.png

If it is check this one. 

From you Admin page, go to Online Store > Themes

Select the theme you want to edit

Under the Asset folder, open the main.css(base.css, style.css or theme.css)

Then place the code below at the very bottom of the file.

 

.live-search {
    display: none;
}

 

And Save. 

What i cant see you have theme.css file on the asset folder. Let me know the result. Thanks!

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.
nickcho
Visitor
2 0 1

Perfect! Easy and it worked. Thank you!

Made4uo-Ribe
Shopify Partner
7760 1877 2298

Welcome, Im sorry but its not so good the logo is in the center look messy with menu on left bottom and icons right top. If you like to make it logo left check this code below.

Same Instruction. 

 

@media screen and (min-width: 1024px) {
.site-header-main-content {
    justify-content: flex-start;
}
}

 

And save. 

Result:

Made4uoRibe_0-1722628443234.png

 

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.