Woo Canvas sidebar container is empty

Home Forums Calendar Products Events Calendar PRO Woo Canvas sidebar container is empty

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #953379
    prebenjensen
    Participant

    I have previously contacted you with the same problem. I have now tried to change the various templates that are with your program. But no positive result.
    I can call sidebars with get_sidebar (). It does not work as intended, as sidebars is then located in the center column.
    I have tried to insert the code from the Canvas page template with the same result.
    This before your code:
    ?>

    <!– #content Starts –>
    <?php woo_content_before(); ?>
    <div id=”content” class=”col-full”>

    <div id=”main-sidebar-container”>

    <!– #main Starts –>
    <?php woo_main_before(); ?>
    <section id=”main”>
    <?php

    And this after your code

    ?>
    </section><!– /#main –>
    <?php woo_main_after(); ?>

    <?php get_sidebar(); ?>

    </div><!– /#main-sidebar-container –>

    <?php get_sidebar( ‘alt’ ); ?>

    </div><!– /#content –>
    <?php woo_content_after(); ?>
    <?php get_footer(); ?>

    It seems that your program totally ignores Canvas sidebars no matter what I try.
    As you can see here the sidebars is visible, just no content:

    Here is a page with content in sidebars:

    I do not think that it is a template problem, but rather a problem of compatibility.
    I also tried to disable all other plugins, this does not help.
    The *Twentyy Fourteen theme does not show sidebars as canvas, så I cant use that.

    Do you have more options?

    #953380
    prebenjensen
    Participant

    It seems that links disappear when I upload. I try again here.
    http://mcikast.dk/event/tyskland-2015/
    http://mcikast.dk/alle-blogs/

    #953399
    George
    Participant

    Hello,

    Sorry for your trouble here – you mention reaching out to us before, can you share a link to that forum topic for reference here?

    Also, can you explain a bit more about what you’re trying to do here? Do you mean that on non-Events pages, the Canvas sidebars show up fine, but on events-related pages, the canvas sidebars do not?

    The Events Calendar should work fine with any WordPress-compatible theme, so if you’ve made many custom templates and such, my first recommendation would be to try and remove them temporarily – after backing up all those custom files and code so you can restore them later! – and see how things work. In other words, restoring you copy of Canvas to its default code completely.

    — George

    #953416
    prebenjensen
    Participant

    Hi.
    Thank you for response.

    Sorry for your trouble here – you mention reaching out to us before, can you share a link to that forum topic for reference here? https://theeventscalendar.com/support/forums/topic/sidebars-is-missing-in-single-event-list-and-in-calendar/

    All changes made has been done in custom.css and i the tribe-event folder. I have reset everything, and tried in af cleen canvas. Still the same problem.

    Also, can you explain a bit more about what you’re trying to do here? Do you mean that on non-Events pages, the Canvas sidebars show up fine, but on events-related pages, the canvas sidebars do not? yes that’s exactly what I mean..

    #953464
    prebenjensen
    Participant

    Hi again.
    I also made a new family website, just to test if it had to be something with wordpress version. on this website there is absolutely no code changes. However, there are the same problems.

    Here is the addresses:

    Event page (no sidebar filling) http://fam-jensen.info/event/faetter-og-kusine-fest-2014/
    Non event page (with sidebar filling) http://fam-jensen.info/category/familie/

    #953577
    George
    Participant

    Hey Preben,

    Just to be clear, in your initial post you mention that get_sidebar() does actually work in getting the sidebars to show up, as Geoff mentioned in your original forum post.

    If you read through his directions in the original topic, do the sidebars show up fine, but just not in the exact column you want them in?

    If so, please share the modified version of the single-event.php file in your theme’s /tribe-events directory – past your whole, un-edited version of the file into a Gist at http://gist.github.com and share a link to that Gist.

    Thanks,
    George

    #953781
    prebenjensen
    Participant

    HI.
    I have deleted the file in my theme’s tribe-events directory. But I as I share with you the code was like this:

    <?php
    /**
    * Page Template
    *
    * This template is the default page template. It is used to display content when someone is viewing a
    * singular view of a page (‘page’ post_type) unless another page template overrules this one.
    * @link http://codex.wordpress.org/Pages
    *
    * @package WooFramework
    * @subpackage Template
    */
    get_header();
    ?>

    <!– #content Starts –>
    <?php woo_content_before(); ?>
    <div id=”content” class=”col-full”>

    <div id=”main-sidebar-container”>

    <!– #main Starts –>
    <?php woo_main_before(); ?>
    <section id=”main”>
    <?php
    woo_loop_before();

    if (have_posts()) { $count = 0;
    while (have_posts()) { the_post(); $count++;
    woo_get_template_part( ‘content’, ‘page’ ); // Get the page content template file, contextually.
    }
    }

    woo_loop_after();
    ?>
    </section><!– /#main –>
    <?php woo_main_after(); ?>

    <?php get_sidebar(); ?>

    </div><!– /#main-sidebar-container –>

    <?php get_sidebar( ‘alt’ ); ?>

    </div><!– /#content –>
    <?php woo_content_after(); ?>
    <?php get_footer(); ?>

    When this code is used displayed everything in the middle column. It is not the intent.
    The sidebars is also in the middle column. The sidebars from canvas is still empty.

    Here is the original code/contest I use in the file:

    <?php
    /**
    * Single Event Template
    * A single event. This displays the event title, description, meta, and
    * optionally, the Google map for the event.
    *
    * Override this template in your own theme by creating a file at [your-theme]/tribe-events/single-event.php
    *
    * @package TribeEventsCalendar
    *
    */

    if ( ! defined( ‘ABSPATH’ ) ) {
    die( ‘-1’ );
    }

    $event_id = get_the_ID();

    ?>

    <div id=”tribe-events-content” class=”tribe-events-single vevent hentry”>

    <p class=”tribe-events-back”>
    “> <?php _e( ‘« All Events’, ‘tribe-events-calendar’ ) ?>
    </p>

    <!– Notices –>
    <?php tribe_events_the_notices() ?>

    <?php the_title( ‘<h2 class=”tribe-events-single-event-title summary entry-title”>’, ‘</h2>’ ); ?>

    <div class=”tribe-events-schedule updated published tribe-clearfix”>
    <?php echo tribe_events_event_schedule_details( $event_id, ‘<h3>’, ‘</h3>’ ); ?>
    <?php if ( tribe_get_cost() ) : ?>
    <span class=”tribe-events-divider”>|</span>
    <span class=”tribe-events-cost”><?php echo tribe_get_cost( null, true ) ?></span>
    <?php endif; ?>
    </div>

    <!– Event header –>
    <div id=”tribe-events-header” <?php tribe_events_the_header_attributes() ?>>
    <!– Navigation –>
    <h3 class=”tribe-events-visuallyhidden”><?php _e( ‘Event Navigation’, ‘tribe-events-calendar’ ) ?></h3>
    <ul class=”tribe-events-sub-nav”>
    <li class=”tribe-events-nav-previous”><?php tribe_the_prev_event_link( ‘<span>«</span> %title%’ ) ?>
    <li class=”tribe-events-nav-next”><?php tribe_the_next_event_link( ‘%title% <span>»</span>’ ) ?>

    <!– .tribe-events-sub-nav –>
    </div>
    <!– #tribe-events-header –>

    <?php while ( have_posts() ) : the_post(); ?>
    <div id=”post-<?php the_ID(); ?>” <?php post_class(); ?>>
    <!– Event featured image, but exclude link –>
    <?php echo tribe_event_featured_image( $event_id, ‘full’, false ); ?>

    <!– Event content –>
    <?php do_action( ‘tribe_events_single_event_before_the_content’ ) ?>
    <div class=”tribe-events-single-event-description tribe-events-content entry-content description”>
    <?php the_content(); ?>
    </div>
    <!– .tribe-events-single-event-description –>
    <?php do_action( ‘tribe_events_single_event_after_the_content’ ) ?>

    <!– Event meta –>
    <?php do_action( ‘tribe_events_single_event_before_the_meta’ ) ?>
    <?php
    /**
    * The tribe_events_single_event_meta() function has been deprecated and has been
    * left in place only to help customers with existing meta factory customizations
    * to transition: if you are one of those users, please review the new meta templates
    * and make the switch!
    */
    if ( ! apply_filters( ‘tribe_events_single_event_meta_legacy_mode’, false ) ) {
    tribe_get_template_part( ‘modules/meta’ );
    } else {
    echo tribe_events_single_event_meta();
    }
    ?>
    <?php do_action( ‘tribe_events_single_event_after_the_meta’ ) ?>
    </div> <!– #post-x –>
    <?php if ( get_post_type() == TribeEvents::POSTTYPE && tribe_get_option( ‘showComments’, false ) ) comments_template() ?>
    <?php endwhile; ?>

    <!– Event footer –>
    <div id=”tribe-events-footer”>
    <!– Navigation –>
    <!– Navigation –>
    <h3 class=”tribe-events-visuallyhidden”><?php _e( ‘Event Navigation’, ‘tribe-events-calendar’ ) ?></h3>
    <ul class=”tribe-events-sub-nav”>
    <li class=”tribe-events-nav-previous”><?php tribe_the_prev_event_link( ‘<span>«</span> %title%’ ) ?>
    <li class=”tribe-events-nav-next”><?php tribe_the_next_event_link( ‘%title% <span>»</span>’ ) ?>

    <!– .tribe-events-sub-nav –>
    </div>
    <!– #tribe-events-footer –>

    </div><!– #tribe-events-content –>

    I can see that others have the same problem , so please help us

    El’Prebsi

    #953787
    prebenjensen
    Participant

    Hi. I dont have a Gits account, so I cant upload it to that.

    #953791
    prebenjensen
    Participant

    Here you can see the result in a test environment: http://fam-jensen.info/event/faetter-og-kusine-fest-2014/

    #954369
    George
    Participant

    Hey @prebenjensen,

    A Gist account is not needed to create a Gist, you can create them anonymously there and it’s indeed recommended to do so.

    However, just by reading through the code here, I think the problem is that you need to add all of the woo_ actions to your copy of the Events Calendar files if you’re trying to get WooCommerce sidebars and such to display and function properly.

    This is more than just get_sidebar() – there seems to be a lot of other actions there like woo_content_after(),woo_main_before(), etc.

    Since this is fundamentally a customization question, I’m afraid your best bet is to contact WooCommerce/WooThemes’ support team and ask for assistance on how to go about doing this. They may have some simple recommendations here that can help, as we’re simply not familiar enough the specifics of the Canvas theme and don’t have the resources to devote to testing this customization manually.

    I’m sorry if this is a disappointment Preben.

    Let us know what you think and if you have any other separate questions/concerns here.

    Thanks,
    George

    #983993
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Woo Canvas sidebar container is empty’ is closed to new replies.