-
-
Save ibndawood/8e151f19e5d30b4e38149144be75d257 to your computer and use it in GitHub Desktop.
Techmarket - Add custom search to sportsmarket
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function techmarket_header_v9_search() { | |
add_filter( 'techmarket_enable_search_categories_filter', '__return_false' ); | |
echo '<div class="custom-header-search-bar">'; | |
techmarket_navbar_search(); | |
echo '</div>'; | |
} | |
add_action( 'techmarket_header_v9', 'techmarket_header_v9_search', 30 ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@media (min-width: 1170px) { | |
.custom-header-search-bar { | |
width: 24%; | |
} | |
.custom-header-search-bar .navbar-search button { | |
min-width: 4.067em; | |
} | |
.custom-header-search-bar .navbar-search button i{ | |
display: block; | |
} | |
.custom-header-search-bar .navbar-search button .search-btn { | |
display: none; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment