WordPress.org

Forums

Sidbar-alt below content (4 posts)

  1. bleggate
    Member
    Posted 3 years ago #

    Hi. I have just noticed that on pages/ posts where I specify the layout content-sidbar that my site is still pulling the sidebar-alt under the commments field?

    I have no idea how this is happening. I recently upgrade to version 3.2.1 and I installed Flash video player plugin. I have deactivated flash video player but this makes no difference.
    I am unaware of what change I can olny imagine I must have made to make this happen.

    Your help would be greatly appreciated.

    http://margaretriverguide.com.au/eguide

    my default layout is sidebar-content-sidebar where everything looks okay. Again this only happens when I choose content-sidebar layout.

  2. bleggate
    Member
    Posted 3 years ago #

    Looked into this further and if I deactivate The Events Calendar Plugin it all seems okay, but I do not understand as it was working 100% with this plugin activated, so not sure what has changed.
    Any assistance welcomed

  3. valerama
    Member
    Posted 3 years ago #

    Did you modify the template for the Events Calendar? How are you displaying the page?

    If the sidebar is under the content that means you're probably missing a closing </div> tag somewhere.

  4. bleggate
    Member
    Posted 3 years ago #

    Hi Yes I have modified the template for the events calandar. Here are the two files as I have them. Sounds reasonalble. Let me know where you think I have gone wrong with my </div>

    single.php

    <?php
    global $spEvents;
    $spEvents->loadDomainStylesScripts();
    get_header();
    ?>
    <?php get_sidebar( 'alt' ); ?>
    <div id="content" style=" padding-left: 30px; ">
    <div id="tec-content" class="tec-event widecolumn">
    <?php the_post(); global $post; ?>
    <div id="post-<?php the_ID() ?>" <?php post_class() ?>>
    <span class="back">"><?php _e('« Back to Events', $spEvents->pluginDomain); ?></span>
    <?php echo adrotate_group(2); ?>
    <div><span> </span></div>
    <h2 class="entry-title"><?php the_title() ?></h2>
    /?ical=<?php echo $post->ID; ?>"><?php _e('iCal Import', $spEvents->pluginDomain) ?>
    <?php if (the_event_end_date() > time() ) { ?><small><?php _e('This event has passed.', $spEvents->pluginDomain) ?></small> <?php } ?>
    <div id="tec-event-meta">
    <dl class="column">
    <dt><?php _e('Start:', $spEvents->pluginDomain) ?></dt>
    <dd><?php echo the_event_start_date(); ?></dd>
    <?php if (the_event_start_date() !== the_event_end_date() ) { ?>
    <dt><?php _e('End:', $spEvents->pluginDomain) ?></dt>
    <dd><?php echo the_event_end_date(); ?></dd>
    <?php } ?>
    <?php if ( the_event_cost() ) : ?>
    <dt><?php _e('Cost:', $spEvents->pluginDomain) ?></dt>
    <dd><?php echo the_event_cost(); ?></dd>
    <?php endif; ?>
    </dl>
    <dl class="column">
    <?php if(the_event_venue()) : ?>
    <dt><?php _e('Venue:', $spEvents->pluginDomain) ?></dt>
    <dd><?php echo the_event_venue(); ?></dd>
    <?php endif; ?>
    <?php if(the_event_phone()) : ?>
    <dt><?php _e('Phone:', $spEvents->pluginDomain) ?></dt>
    <dd><?php echo the_event_phone(); ?></dd>
    <?php endif; ?>
    <?php if( tec_address_exists( $post->ID ) ) : ?>
    <dt>
    <?php _e('Address:', $spEvents->pluginDomain) ?>
    <?php if( get_post_meta( $post->ID, '_EventShowMapLink', true ) == 'true' ) : ?>
    <?php $mapArgs = array("f"=>"q","source"=>"s_q","geocode"=>""); ?>
    " title="<?php _e('Click to view a Google Map', $spEvents->pluginDomain); ?>" target="_blank"><?php _e('Google Map', $spEvents->pluginDomain ); ?>
    <?php endif; ?>
    </dt>
    <dd>
    <?php tec_event_address( $post->ID ); ?>
    </dd>
    <?php endif; ?>
    </dl>
    </div>
    <?php if( get_post_meta( $post->ID, '_EventShowMap', true ) == 'true' ) : ?>
    <?php if( tec_address_exists( $post->ID ) ) event_google_map_embed(); ?>
    <?php endif; ?>
    <div class="entry">
    <?php the_content(); ?>
    <?php if (function_exists('the_event_ticket_form')) { the_event_ticket_form(); } ?>
    </div>
    <?php edit_post_link('Edit', '<span class="edit-link">', '</span>'); ?>
    </div><!-- post -->

    <?php if(eventsGetOptionValue('showComments','no') == 'yes'){ comments_template();} ?>

    <?php genesis_author_box( 'single' );

    ?>
    <?php genesis_get_comments_template();

    ?>

    </div></div><!-- tec-content -->
    <?php get_sidebar(); ?>

    <?php
    get_footer();

    Gridview.php

    <?php
    global $spEvents;
    $spEvents->loadDomainStylesScripts();
    get_header();
    ?>
    <div id="content-sidebar-wrap">
    <div id="tec-content" class="grid">
    <div id='tec-events-calendar-header' class="clearfix">
    <h2 class="tec-cal-title"><?php _e('Calendar of Events', $spEvents->pluginDomain) ?></h2>
    <span class='tec-month-nav'>
    <span class='tec-prev-month'>
    '>
    ← <?php echo events_get_previous_month_text(); ?>

    </span>

    <?php get_jump_to_date_calendar( "tec-" ); ?>

    <span class='tec-next-month'>
    '>
    <?php echo events_get_next_month_text(); ?> →

    </span>
    </span>

    <span class='tec-calendar-buttons'>
    '><?php _e('Event List', $spEvents->pluginDomain)?>
    '><?php _e('Calendar', $spEvents->pluginDomain)?>
    </span>
    </div><!-- tec-events-calendar-header -->
    <?php
    global $wp_query;
    $tecCatObject = get_category( $wp_query->query_vars['cat'])
    ?>
    /?ical=<?php echo $tecCatObject->slug; ?>"><?php _e('iCal Import', $spEvents->pluginDomain) ?>
    <?php event_grid_view(); // See the plugins/the-events-calendar/views/table.php template for customization ?>
    </div></div>
    <?php /* For custom template builders...
    * The following init method should be called before any other loop happens.
    */
    $wp_query->init(); ?>
    <?php get_sidebar( 'alt' ); ?>
    <?php get_footer(); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic