Hey guys,
For this you need to do two things:
<form action="/search" method="get" class="search-header search search--focus" role="search">
<input class="search-header__input search__input"
type="search"
name="q"
placeholder="{{ 'general.search.placeholder' | t }}"
aria-label="{{ 'general.search.placeholder' | t }}">
<button class="search-header__submit search__submit btn--link" type="submit">
{% include 'icon-search' %}
<span class="icon__fallback-text">{{ 'general.search.submit' | t }}</span>
</button>
</form>
Notice the added search--focus.
Adjust the javascript code here Assets/theme.js, line : 1141 - 1143 (if the theme was not adjusted, if it was just look for this code in the file.) to look like this:
$(selectors.searchHeaderInput).add(selectors.searchHeaderSubmit).on('focus blur', function() {
//$(selectors.searchHeader).toggleClass(classes.focus);
});
This will comment out the hidding/showing functionality and your searchbox will always be displayed.
Hope this helps!
Let me know if you have questions.
Cheers!
User | Count |
---|---|
547 | |
210 | |
127 | |
79 | |
46 |