Home › Forums › Calendar Products › Community Events › Add Content Sidebar To Genesis Child Theme
- This topic has 3 replies, 2 voices, and was last updated 10 years ago by Barry.
-
AuthorPosts
-
March 17, 2014 at 11:34 am #119863suzannegoodwinParticipant
The single events forces a full width layout.
I have tried PHP to force a content sidebar layout but it doesn’t work.
I need to add a sidebar.
Thanksadd_filter( ‘genesis_pre_get_option_site_layout’, ‘change_events_layout’);
function change_events_layout( $opt ) {
if (is_singular(‘event’) ) {
$opt = ‘content-sidebar’;
return $opt;}
}
March 17, 2014 at 3:10 pm #120145BarryMemberHi Susanne,
Can you try using the Default Events Template and override and customize it (following the steps in the Themer’s Guide), so that instead of:
get_header(); ?> <div id="tribe-events-pg-template"> <?php tribe_events_before_html(); ?> <?php tribe_get_view(); ?> <?php tribe_events_after_html(); ?> </div> <!-- #tribe-events-pg-template --> <?php get_footer(); ?>
You have something like:
get_header(); ?> <div id="tribe-events-pg-template"> <?php tribe_events_before_html(); ?> <?php tribe_get_view(); ?> <?php tribe_events_after_html(); ?> </div> <!-- #tribe-events-pg-template --> <div id="tribe-events-pg-sidebar"> <?php dynamic_sidebar( 'custom_events_sidebar' ) ?> </div> <?php get_footer(); ?>
And add appropriate CSS rules to your stylesheets from there?
March 18, 2014 at 10:03 am #120664BarryMemberHi! Given we’ve got another very similar topic on the go, do you still require separate assistance in this thread?
April 2, 2014 at 5:57 am #126693BarryMemberThis thread’s not seen much activity for the last couple of weeks so I’ll go ahead and close it. Of course if you still need help with this or any other issue please don’t hesitate to create a new thread (or threads) and one of the team will be only too happy to help. Thanks!
-
AuthorPosts
- The topic ‘Add Content Sidebar To Genesis Child Theme’ is closed to new replies.