@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.