Skip to content

Instantly share code, notes, and snippets.

@joshuadavidnelson
Created February 9, 2015 14:32
Show Gist options
  • Save joshuadavidnelson/93cf92f8d2e878c993fc to your computer and use it in GitHub Desktop.
Save joshuadavidnelson/93cf92f8d2e878c993fc to your computer and use it in GitHub Desktop.
Custom sidebar(s) in Genesis Framwork - great for custom page templates and custom post types
<?php
/**
* Custom secondary sidebar for Genesis Framework.
*
* Use in your page template(s) or custom post type archive/single templates.
*
* @author Joshua David Nelson, josh@joshuadnelson.com
*/
// Custom Sidebar
remove_action( 'genesis_sidebar_alt', 'genesis_do_sidebar_alt' );
add_action( 'genesis_sidebar_alt', 'jdn_custom_sidebar_alt' );
function jdn_custom_sidebar() {
// Custom secondary sidebar content
}
<?php
/**
* Custom primary sidebar for Genesis Framework.
*
* Use in your page template(s) or custom post type archive/single templates.
*
* @author Joshua David Nelson, josh@joshuadnelson.com
*/
// Custom Sidebar
remove_action( 'genesis_sidebar', 'genesis_do_sidebar' );
add_action( 'genesis_sidebar', 'jdn_custom_sidebar' );
function jdn_custom_sidebar() {
// Custom primary sidebar content
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment