Search Bar missing from Mobile

Hi Folks I have tried all of the coding suggestions previously posted on the forum but still no luck. Website is www.pawsomegadgets.co.uk and my theme is “Origin”. Still no search bar on mobile but laptop is fine. Thanks in advance

Luke

1 Like

Hi @Briles ,

Can you kindly share your store (with the password, if any) with us? We will check it and suggest you a solution if possible.

Hi @Briles

Its password protected.

Hey @Briles

Can you share your website password as well?

Best Regards,

Moeed

Apologies its Br1l3shl!!

Apologies its Br1l3shl!!

thanks

Hey @Briles

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 tag.

RESULT:

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

Best Regards,
Moeed

Hi @Briles ,

You can try this code by following these steps:

Step 1: Go to Shopify Admin → Online Store ->Theme → Edit code

Step 2: Search file base.css, theme.css or styles.css

Step 3: Insert the below code at the bottom of the file → Save

@media only screen and (max-width: 767px)
{
  .header--top-center>.header__search {
    display: block !important;
  }
}

Here is result:

Hope this can help you

Hi thanks you for that, my laptops just thrown a wobbly and some code got deleted, im unsure how to get it back

Thanks for the info, 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 “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 (max-width: 989px){
.header--top-center>.header__search {
    display: inline-flex;
} 
    }

And save.

Result:

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

Hi @Briles , To revert the code, please do the following:

Windows/Linux: Press Ctrl + Z, Mac: Press Command + Z

Great stuff thanks everyone for your help

1 Like

@Briles Please follow below steps to show the search bar in the mobile. Let me know whether it is helpful for you.

  1. From admin, go to “Online Store” → “Themes”.
  2. Click “Customize” button from the current theme.
  3. Click “Header”.
  4. Locate “Custom CSS” field and paste the below code as like in the screenshot.
.header--top-center > .header__search {
    display: inline-block;
}

Result will be like,

Please provide your support by click “Like” and “Accepted” if our solution works for you. Thanks for your support.