Venture Theme (Newest Version) - Looking To Keep Search Bar Open

Tourist
16 0 1

Hello!

 

So this question has been asked before, but... many themes where changed and updated since then and the code is not the same and will not work on my site.

 

I would like to keep the search bar always open, any one have the code for this mod?

 

Thank you!

Vintage Triumph parts, classic BSA parts, and Norton parts!
0 Likes
Shopify Partner
66 2 9

Hello there!

To keep searchbar always visible try the following:

1. Open the theme editor

2. Open header.liquid file

3. Search for element with 'site-header__search-inner' class

4. Add 'search-header__search-inner--active' class to that element

5. Open theme.js file

6. Locate piece of code: 

$searchInner.removeClass(config.searchInnerActiveClass);

7. Remove it.

 

Developer @ MageWorx | Explore our Shopify apps | Need theme customization or migration? Reach us at apps@mageworx.com
0 Likes
Highlighted
Tourist
16 0 1

Thanks for getting back to me! I was not able to successfully locate code #6, it does not appear in the theme.js?

 

 

I found code similar but still does not keep the search bar open

Vintage Triumph parts, classic BSA parts, and Norton parts!
0 Likes