WordPress.org

Forums

[resolved] [Plugin: The Events Calendar] If sidebar is above content, gridview FAILS (3 posts)

  1. jamblo
    Member
    Posted 5 years ago #

    Hi there

    This plugin is fantastic, except for one small issue.

    I have discovered that if your template is set up, like so:

    <header></header>
    <content>The events calendar gridview</content>
    <sidebar>
    <footer></footer>

    (I realise those are not real HTML tags)

    With the Events List Widget in your side bar, the gridview works as normal (and very well indeed). However, if you layout your site like this:

    <header></header>
    <sidebar>
    <content>The events calendar gridview</content>
    <footer></footer>

    -which is what I need to do, the gridview gets stuck on the current month. If you change the month in the drop down, the URL changes but the page stays exactly the same.

    So for example, its currently March, I choose April (where I know I have an event listed), but the view remains as March, despite the url changing to http://www.website.com/category/events/2010-04/

    I'd be grateful if anyone could shed some light on this issue. I suppose its happening because a variable displayed in the sidebar is conflicting with the gridview if the gridview is below it.

    Thank you
    James

  2. jamblo
    Member
    Posted 5 years ago #

    The solution, if not already obvious, is to use CSS to float your sidebar and content to the position you want it, whilst retaining the hierachy of HEADER > CONTENT > SIDEBAR > FOOTER.

    Assumeably a query in the sidebar widget conflicts with the main calendar display.

  3. Jonas Grumby
    Member
    Posted 5 years ago #

    Most coders put their sidebar div after the content div anyway to get the unique content higher in the source code for SEO. @jamblo is correct, assuming that you are floating the sidebar and content divs.

    The only reason for coding the sidebar above the content in your template would be if you wanted it to display horizontally above the content, and even that can be done by making the divs float while also making them too wide to fit next to each other (which may be a little bit "janky" to use a WordPress term, but it would work).

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.