Skip to content

Instantly share code, notes, and snippets.

@RhythmShahriar
Created October 14, 2013 11:51
Show Gist options
  • Save RhythmShahriar/6974466 to your computer and use it in GitHub Desktop.
Save RhythmShahriar/6974466 to your computer and use it in GitHub Desktop.
<?php
/**-------------------------------------------
* @package Code Snippets
* @link http://rhythmshahriar.com/code/
* @author Rhythm <[email protected]>
* @copyright Copyright (c) 2013, Rhythm Shahriar
-------------------------------------------------*/
//Customize search form button
add_filter( 'genesis_search_button_text', 'rs_search_button_text' );
function rs_search_button_text( $text ) {
return esc_attr( 'Search' );
}
<?php
/**-------------------------------------------
* @package Code Snippets
* @link http://rhythmshahriar.com/code/
* @author Rhythm <[email protected]>
* @copyright Copyright (c) 2013, Rhythm Shahriar
-------------------------------------------------*/
// Customize search form input text
add_filter( 'genesis_search_text', 'rs_search_text' );
function rs_search_text( $text ) {
return esc_attr( 'Search my website ...' );
}
<?php
/**-------------------------------------------
* @package Code Snippets
* @link http://rhythmshahriar.com/code/
* @author Rhythm <[email protected]>
* @copyright Copyright (c) 2013, Rhythm Shahriar
-------------------------------------------------*/
// Customize search form label
add_filter( 'genesis_search_form_label', 'rs_search_form_label' );
function rs_search_form_label ( $text ) {
return esc_attr( 'Your Custom Label' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment