Created
May 21, 2013 15:06
-
-
Save JiveDig/5620528 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Change default sidebar text | |
remove_action( 'genesis_sidebar', 'genesis_do_sidebar' ); | |
add_action( 'genesis_sidebar', 'beatminded_do_default_sidebar' ); | |
/** | |
* Echo primary sidebar default content. | |
*/ | |
function beatminded_do_default_sidebar() { | |
if ( ! dynamic_sidebar( 'sidebar' ) ) { | |
echo '<div class="widget widget_text"><div class="widget-wrap">'; | |
echo '<h4 class="widgettitle">'; | |
_e( 'New Default Widget Title', 'genesis' ); | |
echo '</h4>'; | |
echo '<div class="textwidget"><p>'; | |
printf( __( 'I am going to put some new text here, for the default widget.', 'genesis' ), admin_url( 'widgets.php' ) ); | |
echo '</p></div>'; | |
echo '</div></div>'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment