Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #4088
    Wiper W
    Participant

    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 shown

    Is it the single-page.php I need to modify or what do I do?

    #4090
    Bartosz
    Keymaster

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

    #4093
    Wiper W
    Participant

    hmm..copied – removed <?php get_sidebar(); ?> but that doesn’t solve it…
    maybe the wrong page?

    #4095
    Bartosz
    Keymaster

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

    #4096
    Wiper W
    Participant

    hmm…can’t get it to Work…mayby I should change theme… which one is best for EM ?

    #4489
    Forrest Garvin
    Participant

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

    #4492
    Bartosz
    Keymaster

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

    #4493
    Forrest Garvin
    Participant
    #4494
    Bartosz
    Keymaster

    Forrest,

    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

    #4495
    Forrest Garvin
    Participant

    Thanks 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
    <?php

    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 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…

    #4496
    Bartosz
    Keymaster

    That’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_Thirteen

    #4497
    Forrest Garvin
    Participant

    Where would that come from?
    I can’t find it anywhere… where 0 margin – left

    Thanks

    #4502
    Bartosz
    Keymaster

    Please, ask your theme developer to help you out with this.

Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.