- This topic has 12 replies, 3 voices, and was last updated 10 years, 6 months ago by Bartosz.
-
AuthorPosts
-
6 June 2014 at 11:55 #4088Wiper WParticipant
Hi – love the plugin – everything Works fine – almost- :)
when I click on the event in the calendar, I get a page “http://domain.com/?post_type=event”
where all the event details are displayed and that’s fine, but underneath the details the right side widgets is shown…
I would like to;
Show the event details page on
A) a page where both the left and right widgets is shown
or
B) none of the widgets is shownIs it the single-page.php I need to modify or what do I do?
6 June 2014 at 12:50 #4090BartoszKeymasterJust copy the single-event.php from plugin templates folder to your current theme and adjust the display (similary as you’d do with Woocommerce).
Plugin templates are based and optimized for WordPress Twenty Thirteen and Twenty Fourteen themes. If you’re using any other theme or build your own, some modifications might be necessery. Templates code is documented so you should be able to do that pretty easily.
6 June 2014 at 16:06 #4093Wiper WParticipanthmm..copied – removed <?php get_sidebar(); ?> but that doesn’t solve it…
maybe the wrong page?6 June 2014 at 16:14 #4095BartoszKeymasterI don’t think you should remove it. Please compare the copied EM files with the one you have in your theme. For example single.php (responsible for single post type display) with single-event.php (single event) and make adjustment to single-event.php to fit your theme design.
Unfortunatelly I can’t be more precise here because all this depends on your theme / site settings. It’s a purely WP theme desing topic.
6 June 2014 at 16:37 #4096Wiper WParticipanthmm…can’t get it to Work…mayby I should change theme… which one is best for EM ?
22 July 2014 at 00:23 #4489Forrest GarvinParticipantI have the same problem… I have read the comments… My single.php and single-event.php are the same… the only difference is —>
<?php em_get_template_part(‘content’, ‘single-event’); ?>
I see my single-event.php page has move the content over about a half inch to the right which then move the sidebar widget under main content….
Please help.
22 July 2014 at 01:05 #4492BartoszKeymaster@Wiper, the best starting point is one of the WP default themes – Twenty Thirteen or Twenty Fourteen.
Forrest, can you post alink to your site?
22 July 2014 at 01:08 #449322 July 2014 at 01:15 #4494BartoszKeymasterForrest,
If you take a closer look, single.php and single-event.php are not identical.
The div #primary on single.php has additional class that removes left margin from the #primary. That is the same margin that makes the widget fall to the bottom on single-event.php
22 July 2014 at 01:22 #4495Forrest GarvinParticipantThanks for your help!!!
Below is my php pages… I don’t see what you are talking about…My single.php
<?php
/**
* The template for displaying all single posts
*
* @package WordPress
* @subpackage Twenty_Thirteen
* @since Twenty Thirteen 1.0
*/get_header(); ?>
<div id=”primary” class=”content-area”>
<div id=”content” class=”site-content” role=”main”><?php /* The loop */ ?>
<?php while ( have_posts() ) : the_post(); ?><?php get_template_part( ‘content’, get_post_format() ); ?>
<?php twentythirteen_post_nav(); ?>
<?php comments_template(); ?><?php endwhile; ?>
</div><!– #content –>
</div><!– #primary –><?php get_sidebar(); ?>
<?php get_footer(); ?>My single-event.php
<?phpget_header(); ?>
<div id=”primary” class=”content-area”>
<div id=”content” class=”site-content” role=”main”><?php /* The loop */ ?>
<?php while ( have_posts() ) : the_post(); ?><?php em_get_template_part(‘content’, ‘single-event’); ?>
<?php endwhile; ?>
</div>
</div><?php get_sidebar(); ?>
<?php get_footer(); ?>Thanks for your help… I am so close…
22 July 2014 at 01:33 #4496BartoszKeymasterThat’s hpw it looks like:
<div id="primary" class="no-margin-left">
Don’t know where it comes from.
But your theme doesn’t look like Twenty_Thirteen22 July 2014 at 02:06 #4497Forrest GarvinParticipantWhere would that come from?
I can’t find it anywhere… where 0 margin – leftThanks
22 July 2014 at 10:18 #4502BartoszKeymasterPlease, ask your theme developer to help you out with this.
-
AuthorPosts
- You must be logged in to reply to this topic.