Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Have search box open by default in #Venture

What you have

Alt text

What you want

Alt text

How to get it

Open your theme.liquid file in the online code editor, go to line no 61 and add the class site-header__search-input--visible to the search box input, like so:

<input type="search" name="q" id="SiteNavSearch" placeholder="{{ 'general.search.placeholder' | t }}" aria-label="{{ 'general.search.placeholder' | t }}" class="site-header__search-input site-header__search-input--visible">

You'll need to scroll to the right, it's a long line of code:

Alt text

@croc2k
Copy link

croc2k commented Mar 20, 2019

Followed these instructions exactly and this class change had no effect?

Looking in theme.scss.liquid there doesn't appear to be a class "site-header__search-input--visible"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment