WordPress.org

Ready to get started?Download WordPress

Forums

Event Organiser
[resolved] Sidebar Template Bug (3 posts)

  1. NymphetamineRx
    Member
    Posted 1 year ago #

    This plugin did everything I wanted it to do, except for one thing: it wouldn't properly load the sidebar template. No matter what we did, or what fixes we tried, it didn't fix loading the sidebar template properly. None of the solutions or suggestions I found while Googling or searching the support forums actually worked. Copying the templates to the theme's directory didn't work. Copying the raw code for the index template into the single-events.php didn't work.

    Running the TwentyEleven theme on my site, with the sidebar, where we have put all of our widgets extra information. We always run the sidebar template for all of our pages.

    http://www.arangoth.org/events/event/armed-bout-4/ <-- this is the events page, with the sidebar called in PHP above the footer line in the single-events.php file. It does not play nice no matter where I put it because it would appear that the template doesn't have a spot for it in its table. The check box for enabling templates is checked.

    Not sure how to fix this, I'd appreciate some comments. I don't have an extensive knowledge of CSS or PHP, and was looking for a plugin to manage this. This plugin would be amazing, if I could just get it to display the sidebar properly in pages it generated.

    Thanks in advance.

    http://wordpress.org/extend/plugins/event-organiser/

  2. Stephen Harris
    Member
    Plugin Author

    Posted 1 year ago #

    Hi, sorry you're having trouble with this.

    Just to clarify a few things. Moving the templates to the theme folder only ensures that changes are not lost when updating EO, so that alone won't solve the issue. index.php is the wrong template to try and replace the single-event.php. The closest template to single-event.php is single.php.

    Taking a quick glance at the CSS between this page, and this event you can see that the elements: #prmiary and #content are styled different only 'singular' pages:

    .singular #primary {
    margin: 0;
    }

    and

    .singular #content, .left-sidebar.singular #content {
    margin: 0 7.6%;
    position: relative;
    width: auto;
    }

    Removing that seems to work - but might break something else. You can also add further CSS to over-ride the above on event pages if there necessary

    E.g.

    .singular.single-event #content{
    
    }

    Hope that helps!

  3. NymphetamineRx
    Member
    Posted 1 year ago #

    Removing both of those code snippets from the CSS worked fine. It fixed the whole matter, and now the singular event is loading the sidebar.

    Thank you for your prompt reply! (And for dealing with my noobishness. I'm not a coder, obviously.)

    I'm going to <3 using your plugin!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.