The Tutorial provides the multiple options to Customize Genesis Search Form, Label, Input Box & Button using snippet and CSS.
Most of the themes on StudioPress includes the search widget with submit button is hidden and some time we need that button. Sometimes we want more control over this to customize it.
The tutorial can be used in any child theme build on Genesis framework with minor tweaks.
Different Ways to Customize the Search Widget.
1. Genesis Search Form Output
These code snippets will help you customize elements of the search form with the Genesis Framework.
a) Customize the Search Form Input Box
Below is the code to customize the input box text in the search form:
//* Customize search form input box text add_filter( 'genesis_search_text', 'wpize_search_text' ); function wpize_search_text( $text ) { return esc_attr( 'Search my blog...' ); }
b) Customize the Search Form Input Button
Below is the code to customize the submit button text in the search form:
//* Customize search form input button text add_filter( 'genesis_search_button_text', 'wpize_search_button_text' ); function wpize_search_button_text( $text ) { return esc_attr( 'Go' ); }
c) Customize the Search Form Label
Below is the code to customize the label text in the search form:
//* Customize search form label add_filter( 'genesis_search_form_label', 'wpize_search_form_label' ); function wpize_search_form_label ( $text ) { return esc_attr( 'Search Form' ); }
2. Genesis Search Form CSS
CSS will help you to design your Search box of any child theme build on Genesis framework.
To view the full content, please sign up for the membership.
Already a member? Log in below or here.