Events won't show with sidebar with X theme / Pro theme

Home Forums Calendar Products Events Calendar PRO Events won't show with sidebar with X theme / Pro theme

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1315447
    Dorothy
    Participant

    Hi there 🙂
    Firstly I just want to say how pleased I have been with the Events Calendar. I have the Pro version and I think it is awesome!

    I wanted to write this post to help others as I couldn’t find a solution on-line when I had problems with the sidebar not showing on the main events page when using Pro theme (similar to X theme by Themeco) . I hope this is useful.

    I recently changed my theme to Pro but already had Events Calendar Pro running the the website and it was working really well with the previous theme.

    Unfortunately, in changing themes the main events page wouldn’t display with a side bar – similar to this post here by Piccia https://theeventscalendar.com/support/forums/topic/cant-have-event-post-with-sidebar-with-x-theme/

    I tried Killigirl’s idea of making a custom template (https://theeventscalendar.com/support/forums/topic/cant-have-event-post-with-sidebar-with-x-theme/) but it didn’t work for me unfortunately. The sidebar would show but the events wouldn’t load. I got a garbled message instead.

    So I created a copy of the default-template.php from \wp-content\plugins\the-events-calendar\src\views” and placed it in \wp-content\themes\pro-child\tribe-events

    I then copied the layout from
    \wp-content\themes\pro-child\framework\views\renew\template-layout-content-sidebar.php
    and used this to create the layout I wanted for the events page. It looked like this:

    <?php
    /**
     * Default Events Template
     * This file is the basic wrapper template for all the views if 'Default Events Template'
     * is selected in Events -> Settings -> Template -> Events Template.
     *
     * Override this template in your own theme by creating a file at [your-theme]/tribe-events/default-template.php
     *
     * @package TribeEventsCalendar
     *
     */
    if ( ! defined( 'ABSPATH' ) ) {
    	die( '-1' );
    }
    
    get_header();?>
    
    <div class="x-container max width offset">
        <div class="<?php x_main_content_class(); ?>" role="main">
    		<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>
     	<?php get_sidebar(); ?>
    </div>
    
    <?php
    get_footer();?>

    I don’t know if this is the best solution but it works for me and I hope that helps someone else with the same problems.

    #1315985
    Barry
    Member

    Firstly I just want to say how pleased I have been with the Events Calendar. I have the Pro version and I think it is awesome!

    Stoked to hear that, Dorothy 🙂

    Your solution looks great to me – clean and simple and best of all, by the sounds of things, it works! I really appreciate you sharing this.

    #1326388
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Events won't show with sidebar with X theme / Pro theme’ is closed to new replies.