• 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 in Genesis

Last Updated on August 2, 2019 Favorited: 0 times

Customize the Search Form Input Button

//* Customize search form input button text
add_filter( 'genesis_search_button_text', 'gk_search_button_text' );
function gk_search_button_text( $text ) {
	return esc_attr( 'Go' );
}

 

Customize the Search Form Label

//* Customize search form label
add_filter( 'genesis_search_form_label', 'gk_search_form_label' );
function gk_search_form_label ( $text ) {
	return esc_attr( 'Custom Label' );
}

 

Customize the Search Form Input Box

//* Customize search form input box text
add_filter( 'genesis_search_text', 'gk_search_text' );
function gk_search_text( $text ) {
	return esc_attr( 'Search my blog...' );
}

Change Search Results Page title

add_filter( 'genesis_search_title_text', 'dy_search_title_text' );

function dy_search_title_text() {
    return 'Searching for';
}

 

Related Posts

  • 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
  • Header Search in Genesis Sample

Categories: Free Content, Genesis Tutorials Tags: search, search form

Reader Interactions

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