• Skip to primary navigation
  • Skip to content
  • Skip to primary sidebar
  • Skip to user navigation

PopWP

WordPress and Genesis Tutorials

  • Get Started
  • About
  • Archive
  • Services
  • Membership
  • My Account

Customize Search Form Widget in Genesis

Last Updated on August 27, 2020 Favorited: 1 times

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.

 
 
Forgot Password

Related Posts

  • Expanding Search box in menu-item list in Genesis
  • Pop Up Search to the right Site Header in Genesis
  • Search Form in primary menu in Genesis
  • Custom Widget area having Categories and search on Post Page in Genesis
  • Custom hero title on Search results Page in Genesis

Categories: Genesis Tutorials, Premium Content Tags: Customization, search, search widget

Primary Sidebar

Search

WPEngine WordPress Hosting, Perfected.

Hosting You are looking for?.
Perfect solution for small business to global enterprise.

Learn more

StudioPress Genesis Theme Framework

The No.1 Theme Provider.
Creative, SEO rich Theme for all niche projects.

Learn more

Categories

  • Free Content
  • Genesis Tutorials
  • Premium Content
  • Snippets
  • What's New?
  • WordPress Tutorials

Tag Cloud

Archive Background Section blog canvas menu center logo columns conditional tags CSS CSS Grid custom Customizer custom post type Custom Post Types custom template Custom Widget effect eNews Extended Featured Image front-page Genesis Genesis Sample header right hero section Image Background js layout left menu Logo menu Navigation Menu newsletter post page related posts responsive menu search search widget Shrinking Logo site header slide in-out Stylesheet Template Utility Bar Video Background widgets WordPress

Built with Genesis Framework + WordPress by Aryan Raj

  • Contact
  • FAQ
  • Disclaimer
  • Privacy Policy
  • Copyright Policy
  • Terms of Service