Created
March 21, 2018 16:13
-
-
Save adambradford/8da487fd0bcd05d95993eccac51814ee to your computer and use it in GitHub Desktop.
Add Dashicon to search form button in a WordPress site built with the Genesis Framework
This file contains 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
<?php | |
//* Add this to your functions.php file. Do NOT include the opening php tag | |
//* Add Dashicon to search form button | |
add_filter( 'genesis_search_button_text', 'ab_search_button_icon' ); | |
function ab_search_button_icon( $text ) { | |
return esc_attr( '' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment