• Hello,

    I just recently installed WordPress and things are going well.

    I have only one major problem, I can’t get the sidebar to show up in single Events pages and single Location pages using Events Manager.

    How do I do it? I’ve enabled the sidebar theme in WordPress settings. The pages I’ve created are fine.

    I’m using the latest version of WordPress, Twenty Eleven theme, and Events Manager.

    Any ideas?

    Here is what I’ve got so far… https://www.taipeievents.com

Viewing 5 replies - 16 through 20 (of 20 total)
  • that’s great.

    Thread Starter taipeievents

    (@taipeievents)

    @agelonwl

    The snippet including: <div id=”primary” style=”width: 60%”> seems to get the sidebar on the side of my pages now too.

    I use 80%.

    1. There is still lots of padding around the “primary” div though.

    Image –> https://imageshack.us/photo/my-images/35/screenshot20120429at924.png/
    Link –> https://taipeievents.com/?event=world-expos-pavilion-of-taipei-exhibition

    2. Also, where does the Event Title come from. I don’t have it in my template. If I add my own Event Title in the code, then I have the Event Title two times.

    Here is the code I’m using in my event-single.php.

    <?php get_header(); ?>
    <div id="primary" style="width: 80%">
    
    <?php
    global $post;
    $EM_Event = em_get_event($post->ID, 'post_id');
    ?>
    
    <div style="float:left; margin:0px 20px 30px 0px;"><?php echo $EM_Event->output('#_MAP'); ?></div>
    <p>
    	<strong>Date / Time</strong><br/>
    	<?php echo $EM_Event->output('#_EVENTDATES'); ?><br /><?php echo $EM_Event->output('#_EVENTTIMES'); ?><br/>
    
    	<img src="/images/locationpin.png" width="25" height="25" margin="5" style="vertical-align:middle;" /> <?php echo $EM_Event->output('#_LOCATIONLINK'); ?><br/>
    
    <img src="/images/categorystar.png" width="25" height="25" margin="5" style="vertical-align:middle;" /> <?php echo $EM_Event->output('#_CATEGORYLINK'); ?>
    <br/><br/>
    <br style="clear:both" />
    <div style="float:left; margin:20px 20px 20px 0px;"><?php echo $EM_Event->output('#_EVENTIMAGE'); ?></div>
    <h2>Description:</h2>
    <?php echo $EM_Event->output('#_EVENTNOTES'); ?>
    <p><strong>More Information:</strong><br/>
    <a href=<?php echo $EM_Event->output('#_ATT{Website1}'); ?>><?php echo $EM_Event->output('#_ATT{Website1}'); ?></a><br/>
    <a href=<?php echo $EM_Event->output('#_ATT{Website2}'); ?>><?php echo $EM_Event->output('#_ATT{Website2}'); ?></a><br/>
    </p>
    
    	</div><!-- #content -->
    </div><!-- #primary -->
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    I still think somehow my divs are messed up because I have way too much padding around the post.

    @taipeievents

    1.)
    you can inspect the element using browser firebug or chrome then adjust using css

    2.)
    adding to the above post; e.g.

    <?php get_header(); ?>
    <div id="primary" style="width: 80%">
    	<div id="content" role="main">
    		<?php
    			global $post;
    			$EM_Event = em_get_event($post->ID, 'post_id');
    		?>
    		<header class="entry-header">
    			<h1 class="entry-title"><?php echo $EM_Event->output('#_EVENTNAME'); ?></h1>
    		</header>
    		<div class="entry-content">
    			<?php echo $EM_Event->output( get_option('dbem_single_event_format') ); ?>
    		</div>
    	</div>
    </div>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    “1. try going to settings > pages > event pages and choosing to display events as a page, not post”

    Right, this is exactly what you would do. This is a clear feature of this plug-in, but . . . it’s clearly broken, i.e., it doesn’t work. So the rest of this thread works through one failed hack after another. That’s reason enough for me to abandon this plug-ins. Sorry guys — it looked good on paper, and I work for a non-profit that could have really used this, but they don’t have the time and money is going to take to get this to work. By hand, I can easily create what they need using normal theme pages.

    Hi there,
    I have a similar problem with a different theme. I use mikmag and also events manager. my single events pages do not have sidebars.

    I tried to do whats been said above like creating a single-event.php file in the theme menu and trying to add php siderbar footer codes but nothing has worked yet.

    I am not an advanced user. Can you please help on this?

Viewing 5 replies - 16 through 20 (of 20 total)
  • The topic ‘[events-manager] Events/Location pages, can't get sidebar?’ is closed to new replies.