Skip to content

Instantly share code, notes, and snippets.

@adambradford
Created March 21, 2018 16:13
Show Gist options
  • Save adambradford/8da487fd0bcd05d95993eccac51814ee to your computer and use it in GitHub Desktop.
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
<?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( '&#xf002;' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment