Forum Replies Created
-
AuthorPosts
-
suzannegoodwinParticipant
Hey George, you’re the BOSS! Thanks so much!
suzannegoodwinParticipantThis reply is private.
- This reply was modified 8 years, 7 months ago by suzannegoodwin.
suzannegoodwinParticipantThis reply is private.
- This reply was modified 8 years, 7 months ago by suzannegoodwin.
suzannegoodwinParticipantUnderstand however that doesn’t really solve the problem. Do you have a shortcode that can be added to the editor so it uses the themes template?
Adding the sidebar PHP still requires a significant amount of CSS.
suzannegoodwinParticipantHi Barry
// Register new sidebar
genesis_register_sidebar( array(
‘id’ => ‘event-sidebar’,
‘name’ => ‘Events Sidebar’,
‘description’ => ‘This is the sidebar for events.’,
) );add_action(‘get_header’,’custom_events_sidebar’);
function custom_events_sidebar'() {
if ( is_singular(‘event’) {
add_action( ‘genesis_sidebar’, ‘events_do_sidebar’ );
}
}function events_do_sidebar() {
dynamic_sidebar( ‘event-sidebar’ );
}This works with a hand coded CPT but not with the CPT your plugin generates.
Do you have any working examples of your template which includes a sidebar? -
AuthorPosts