Add Content Sidebar To Genesis Child Theme

Home Forums Calendar Products Community Events Add Content Sidebar To Genesis Child Theme

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #119863
    suzannegoodwin
    Participant

    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.
    Thanks

    add_filter( ‘genesis_pre_get_option_site_layout’, ‘change_events_layout’);

    function change_events_layout( $opt ) {
    if (is_singular(‘event’) ) {
    $opt = ‘content-sidebar’;
    return $opt;

    }

    }

    #120145
    Barry
    Member

    Hi 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?

    #120664
    Barry
    Member

    Hi! Given we’ve got another very similar topic on the go, do you still require separate assistance in this thread?

    #126693
    Barry
    Member

    This 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!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Add Content Sidebar To Genesis Child Theme’ is closed to new replies.