Im trying to get genesis custom side bar to display on your single pages.
Ive added
get_sidebar(); to single event.php
and then in my functions
add_action(‘get_header’,’sf_change_genesis_sidebar’);
function sf_change_genesis_sidebar() {
if ( tribe_is_event()) {
remove_action( ‘genesis_sidebar’, ‘genesis_do_sidebar’ ); //remove the default genesis sidebar
add_action( ‘genesis_sidebar’, ‘sf_sidebar’ ); //add an action hook to call the function for my custom sidebar
}
}
function sf_sidebar() {
dynamic_sidebar( ‘workshop’ );
}
A side bar is loading, but is is the regular primary side bar not the workshop one