The generate_search_button filter allows you to change the default Search text in your search button.
Default (string): Search
Adding a Font Icon
If you』re using the GP font icons, you can add this PHP:
add_filter( 'generate_search_button', function() {
return '';
} );
view raw
gistfile1.txt
hosted with ❤ by GitHub
View the code on Gist.
Then add this CSS:
.widget_search .search-submit {
display: block;
font-family: GeneratePress;
}
.search-form {
display: flex;
}
Usage
Please refer to the Using Filters article to learn how to use this filter.