Lost display of calendar on home page after update to 3.0.1

Home Forums Calendar Products Events Calendar PRO Lost display of calendar on home page after update to 3.0.1

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #53173
    Cynthia Lockley
    Participant

    In the previous version I was able to get the calendar to display at the top of my home page with the home page set to “Your Latest Posts” and the following include code in my theme’s index.php file:
    if(is_page(‘home’) || is_front_page()) {
    include(‘wp-content/plugins/the-events-calendar/views/gridview.php’);
    }
    After the update, the calendar is not displaying. Why?
    I am using the Twenty Eleven theme.

    #53565
    Neill
    Member

    Hi Cynthia,
    Thanks for your message and I’m sorry your transition to 3.0 had this issue.

    The code you were using previously in 2.xx was customized. Normally we’d love to help you get this working and would point you in the right direction, but with the release just taking place a few days ago we are stretched a little thin. If this isn’t very urgent we can probably get you the help you need and point you in the right direction in a few days time. Things should have settled down a little by the middle of next week.

    In the mean time if you want to try a solution yourself the new template that is closest to what you were using previously is “loop-grid.php”. I can’t guarantee the current code you are using will work by just replacing the new template name, and I suspect it will need a lot more tweaking, but if this fix is urgent, it might be enough info to set you in the right direction.

    Neill

    #53578
    Cynthia Lockley
    Participant

    Sorry, I did not see this as customized code. I got the original answer for how to put the calendar on the home page from Jonah West in answers to my question “How do I use the Calendar as a static home page?” https://theeventscalendar.com/support/forums/topic/how-do-i-use-the-calendar-as-a-static-home-page/#post-49120. It worked great for version 2.
    His original answer was:
    “The easiest way to do this is with a PHP include that you can include in your theme’s page.php template like so:
    if(is_page(‘home’) || is_front_page()) {
    include(‘wp-content/plugins/the-events-calendar/views/gridview.php’);
    }
    ” I tried putting that php code in several places in page.php but it didn’t work. I was and still am using the Twenty Eleven Theme. I asked if there was a specific place on page.php to put that code. He responded with “If you have the theme home page set to Your Latest Posts [the default setting in WordPress] you’ll need to add the code above to either your theme’s index.php file or home.php – try that.” I tried that and it worked great.

    What part of that was customized and why won’t the same include work for Events Calendar 3?

    #53588
    Cynthia Lockley
    Participant

    I tried replacing gridview.php with loop-grid.php but that doesn’t show on the home page either.

    #53678
    elizas729
    Participant

    I also want to display the calendar on my homepage, tried Cynthia’s solution above and had no luck.

    #53910
    Neill
    Member

    Hi Cynthia,

    First of all apologies for not initially not understanding your goal with this issue.

    So as we mentioned we had a few busy days with the release of 3.0. That coupled with the holiday weekend in the US kept us from our usual 24-hour response time window, but now that we’re back in a new week, things have returned to normal. We appreciate your patience as you waited for us to work through the flood of questions and support issues that arose after 3.0.

    So after consulting a few team members we came up with this as a customized solution:

    First you will have to add this code (from the link) to your functions.php file:
    https://gist.github.com/neillmcshea/e02186aa700db743aa41

    This will ensure all that the proper css and javascript have been enqueued in the theme header.

    Next in either you index.php or home.php add this line:

    Give that a try and let me know if it works.

    Regarding this being a customized solution. What we mean by that is that this code that you inserted into you theme was originally a solution for your specific need. It wasn’t an issue with the way the plugin worked, it’s an issue with the customized solution we offered a few months prior. That being said, with your helpful comments and feedback it might be the case that this is something that could be of use to add to the functionality of future plugins and might be worth bringing to the teams attention to include in future updates as a setting in the backend, so I’m definitely going to make this comment to the team and thanks for your detailed input.

    Let us know how this all goes and if there is anything else we can do.

    #53933
    Cynthia Lockley
    Participant

    Thanks. I put the extra code you gave me in my functions.php file in my child theme and added the line in yellow above (with the space between the < and the ?php closed up) to my index.php file but all I get is a completely gray page. (The color of the page border of the Twenty Eleven theme.) I also tried adding a semicolon after the parens but get the same gray page.
    I agree that this would be very helpful to add to future updates of the plugin as a setting in the backend. I'd have never figured out the function code on my own nor the use of the short code in the index.php file. However, it still needs to work. I know several people who would like to be able to also have the calendar show on their home page. My site is called Events & News and people want to be able to see the Calendar of Events on the front page above the posts so they don't have to click around for it.

    #53934
    Cynthia Lockley
    Participant

    This reply is private.

    #54031
    Neill
    Member

    Hi Cynthia,

    My sincerest apologies. It looks like we may have made an error on the code that is suppose to be added to your functions.php file.

    The original link I sent you has been updated as of 10 minutes ago and now has the correct code to get this working. We have tested it on our end and double checked that this all works. We tested this using the twenty twelve theme. That link again is:https://gist.github.com/neillmcshea/e02186aa700db743aa41

    We’re here if you have any further issues. Looking forward to getting this working for you!

    Neill

    #54157
    Cynthia Lockley
    Participant

    Yes! Now it works! Thanks. See http://events.stcwdc.org/

    #54166
    Neill
    Member

    Cynthia,

    Thats great to hear! Thanks for your patience and detailed info! It really does help us on our end. We are going to mark the specific portion of this thread as the correct answer for any future user looking for this solution. As such I will close this thread out, but feel free to start any new threads with any other issues you might be having.

    elizas729, I will also include you on this comment. If there is anything we can do to help you also feel free to start a new thread and we can give you the support you need too. Otherwise the solution that we have marked above should be all you need for your situation too.

    Thanks again for your support!
    Sincerely
    Neill

    #979868
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Lost display of calendar on home page after update to 3.0.1’ is closed to new replies.