Search bar not appearing on header on mobile ( Venture Theme)

Hi,

I would like my search bar icon to appear beside the cart icon on my header on mobile just like it does on desktop.

Can someone please help me with this .

Thanks in advance.

1 Like

@tamiak - right click is disabled, can you please enable it?

Okay. I just did

Hi @tamiak ,

You can follow the instruction below:

  1. Go to Online Store->Theme->Edit code
  2. Asset->/theme.scss->paste below code at the bottom of the file:
@media (max-width: 749px) {
.site-header__search.small--hide {
    display: block !important;
}
}

Hope it can help you.

@tamiak - please add this css to the very end of your theme.scss file and check

.site-header__search {display: inline-block !important;}

I just added it but it does not work.

@tamiak - clear the cache, it is working

I have cleared the cache several times and even used incognito mode but it’s not displaying

@tamiak - working fine on my machine

This is what it looks like even after clearing the cache. I don’t know what’s happening

@tamiak - theme.css file is not applied on home page, so please check if you have swift-theme-critical.min.css and this to it

.site-header__search {display: inline-block !important;}

It works now. Thank you

1 Like

@tamiak - great, please let me know if you need anything else, you have my email below.

Hi

I didn’t quite get this to work, i am not sure if i got it all right.

Could you publish the whole code at once and also where the code is supposed to go?

Thanks