Skip to content

Instantly share code, notes, and snippets.

@reasonstousegenesis
Created May 22, 2015 10:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reasonstousegenesis/2500411782da08590175 to your computer and use it in GitHub Desktop.
Save reasonstousegenesis/2500411782da08590175 to your computer and use it in GitHub Desktop.
Replace the primary sidebar with Genesis
<?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