• The Events Calendar is excellent with one exception. It is appearing as a full width post, on single, calendar and grid view.

    I would like it to be as a ‘normal’ post with the usual sidebars (not a full width post)

    I’ve found the events.css file and tried changing the .category-events #tec-content from 670 to various sizes but this does not bring back the sidebars.

    I’ve looked at single.php in the template folder and compared it with single.php in the events folders but don’t know enough about php to figure out what I need to change.

    I’m using Gabfires Transcript template with WP 3.0.1 and the Events Calendar is doing just what I want it to (thank you) but I don’t like the full page display and simply want it to display with the sidebars as a normal post would.

    Any help would be very much appreciated – Thank you!

Viewing 9 replies - 1 through 9 (of 9 total)
  • I am having the same problem… I managed to call the sidebar to the single.php file on the-events-calendar, but it shows up at the end. I still don’t know how to make the post width 600px. Let me know if you find out.

    rodrigokino

    I had the same problem.
    First I created the ‘events’ folder (to override the template files – see author documentation).
    Then in the three php files in there I added: <?php get_sidebar(); ?>
    putting it between the closing of the content div and the closing php tag (bear with my terminology…I’m a novice):

    </div><!– tec-content –>
    <?php get_sidebar(); ?>
    <?php

    BUt that squeezed the sidebar down because the content width is set to 670px (the author assigns a class “tec-event widecolumn” in the php – ‘wide’ intentionally for whatever reason.

    So I changed the width from percentage to 570 px and importantly changed position from relative to absolute (and some other tweaks):

    #tec-content {font-size: 1.0em;} /*from 1.2*/
    .tec-event .post {
    position:absolute; /*was relative – absolute brings sidebar up*/
    width: 570px;
    padding: 0 40px;
    }
    I made similar changes to the top of the style sheet for the events-category list to properly format the page too (this is all in the twenty eleven theme, btw – your mileage may vary).

    HERE”S THE STUMPER:
    Somewhere along the way my events list single.php file (in the events folder in my theme) stopped calling the style sheet, thus defaulting the single event page to the theme’s style.css… and skipping the format changes I made in my events folder to the single.php.

    Now, the theme AND the plugin both use single.php files, FWIW, But I can’t figure out why the style sheet is not getting called when it was getting called just fine before I moved on to format the other events list php files.

    Any ideas?
    https://betterbike.org/

    Oops – an errant bracket where a closing comment (*/) should have been evidently fouled up the call. Watch those Ps and Qs! Now I’m back with properly styled single event and events list pages.

    Just to clarify, here are the steps:

    Create an ‘Events’ folder in your child theme’s directory;
    Copy the events.css file from the plugin into it (to style the events pages);
    Copy three files into it from the plugin’s ‘views’ folder –
    single.php
    list.php
    event-list-load-widget-display.php

    At the bottom before the footer is called, insert the code:
    <?php get_sidebar(); ?>

    Hi Mrmark,

    I see you have definitely fixed this issue. I am a little unsure about where this should happen:

    At the bottom before the footer is called, insert the code:
    <?php get_sidebar(); ?>

    I have done a quick scan of the four files and can’t see where it should go.

    Would appreciate your help. Sorry in advance if this is blazingly obvious.

    Thanks.

    I am a little unsure about where this should happen:
    At the bottom before the footer is called, insert the code:
    <?php get_sidebar(); ?>
    I have done a quick scan of the four files and can’t see where it should go.

    At the very bottom of single.php you’ll see the footer call. When you insert that sidebar call it will look like this:

    </div><!-- #content -->
    		</div><!-- #primary -->
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    Hope that helps….

    Thanks, ok so I see now it was the single.php that I needed to change. It did as you suggest, but it hasn’t fixed it (https://www.inonehour.net). I will explore some more…
    I appreciate your help nonetheless.
    Thanks so much.

    @solsyd,

    I should point out that I’m using a custom theme (based on the default twenty eleven) that adds sidebars to single-posts, FWIW. The default twenty eleven theme did not, which irked some upgraders to WP 3x who did use that theme. The twenty eleven with sidebars version makes single-post sidebar possible.

    So maybe that makes a difference? Though I’d expect the sidebar call to work regardless. But I’m no php expert!

    Also, great looking events list page. On Firefox at least, I see that you’ve got no margins on the single event page. I remembered that I had to do some CSS work to make the event single-page view workable; it involved margin tweaks. I used Firebug to inspect and tweak, then coded those changes into the child theme CSS file I made for the Events plugin.

    Mrmark – this is probably a silly question, yet one that I have not found an answer. You have an Events Lists page as you mentioned above. How do I create that page? And for next time, where do I look for that information?

    Thank you for your help!

    Ted

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Plugin: The Events Calendar] Changing 'Full Page' to normal post page with sidebars’ is closed to new replies.