• Resolved TheBarfly

    (@thebarfly)


    I’m trying for the last few days to realize that when i klick on an event and the event page shows up, that it shows full width, and not with space reserved for an sidebar which is not there.
    i have tried the single-event.php solution and that did not work. Or i have done something wrong and i can not find an detailed explenation for it.

    https://www.ads-software.com/extend/plugins/events-manager/

Viewing 10 replies - 1 through 10 (of 10 total)
  • What you need to do is create a template within your theme directory called single-event.php. If you include the code needed to display the sidebar it’ll show up.

    If your standard post template has a sidebar in it, you should be able to just copy single.php to single-event.php and be ready to go.

    Thread Starter TheBarfly

    (@thebarfly)

    But that is the point. I don’t want the sidebar.
    I use the elegance theme from mysitemyway.
    I did copy in my theme-dir, the single.php into single-event.php and i left the page settings on posts instead of pages as described in the small explenation.

    Plugin Support angelo_nwl

    (@angelo_nwl)

    I see, have you tried to just remove <?php get_sidebar(); ?> in your single-event.php (if you already have this) ?

    Thread Starter TheBarfly

    (@thebarfly)

    it is not in there.

    <?php
    /**
     * Page Template
     *
     * @package Mysitemyway
     * @subpackage Template
     */
    global $mysite;
    get_header(); ?>
    
    <?php if( isset( $mysite->is_blog ) ) : ?>
    
    	<?php get_template_part( 'loop', 'index' ); ?>
    
    <?php else : ?>
    
    	<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
    
    		<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    
    			<?php mysite_before_entry(); ?>
    
    			<div class="entry">
    				<?php the_content(); ?>
    
    				<div class="clearboth"></div>
    
    				<?php wp_link_pages( array( 'before' => '<div class="page_link">' . __( 'Pages:', MYSITE_TEXTDOMAIN ), 'after' => '</div>' ) ); ?>
    				<?php edit_post_link( __( 'Edit', MYSITE_TEXTDOMAIN ), '<div class="edit_link">', '</div>' ); ?>
    
    				</div><!-- .entry -->
    
    			<?php mysite_after_entry(); ?>
    
    		</div><!-- #post-## -->
    
    		<?php if( !mysite_get_setting( 'disable_page_comments' ) ) comments_template( '', true ); ?>
    
    	<?php endwhile; ?>
    
    <?php endif; ?>
    
    	<?php mysite_after_page_content(); ?>
    
    		<div class="clearboth"></div>
    	</div><!-- #main_inner -->
    </div><!-- #main -->
    
    <?php get_footer(); ?>
    Plugin Support angelo_nwl

    (@angelo_nwl)

    can I know your template options at Events > Settings > Pages > Event Pages > Display events as ?

    e.g. using twenty twelve theme you should have this options which you can use:

    > Post
    > Pages
    > Theme Templates
    > Front page template
    > Full-width page template, no sidebar

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    Thread Starter TheBarfly

    (@thebarfly)

    angelo:
    – post
    – pages
    -THEMES TEMPLATES
    – feature tour
    – sitemap
    – squeeze page

    marcus:
    your link brought me a bit further… with chrome i se that the current body class of the eventpage is:
    “has_breadcrumbs right_sidebar”
    while when i look at a standard fulll width page the body class is:
    “has_breadcrumbs full_width”

    on te settings>pages display events are: pages
    i put the “has_breadcrumbs full_width” class in the body classes but no effect.

    Where can i see what page the plugin jumps to ?

    Have you tried using the squeeze page template? They’re usually single columns without sidebars.

    Thread Starter TheBarfly

    (@thebarfly)

    i have tried, no luck. BUT i have found a (temporary) solution thanks to this forum-post:

    https://mysitemyway.com/support/topic/events-manager-and-page-layout-full-width

    in my context.php i had to change the classes around line 272.

    It’s not a proper solution but it works for now.

    Plugin Support angelo_nwl

    (@angelo_nwl)

    thanks for the update;

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Single event with no sidebar. How ?’ is closed to new replies.