Created
May 22, 2015 10:02
-
-
Save reasonstousegenesis/2500411782da08590175 to your computer and use it in GitHub Desktop.
Replace the primary sidebar with Genesis
This file contains 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
<?php | |
// Paste the code BELOW this line into your child theme functions. | |
/** | |
* Replace the primary sidebar with Genesis | |
* | |
* @author Reasons to Use Genesis | |
* @link http://reasonstousegenesis.com/genesis-do-sidebar/ | |
*/ | |
remove_action( 'genesis_sidebar', 'genesis_do_sidebar' ); | |
add_action( 'genesis_sidebar', 'rtug_sidebar_replacement' ); | |
function rtug_sidebar_replacement() { | |
echo '<p><strong>A piece of content to replace the primary sidebar</strong></p>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment