After Updating Calendar disappeared from the page.

Home Forums Calendar Products Events Calendar PRO After Updating Calendar disappeared from the page.

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1043099
    cgcs
    Participant

    My WP version is 4.2.2 using custom theme.
    I updated the Events Calendar to Version 4.0.2,
    the Events Calendar PRO to Version 4.0.2
    Calendar is not on the left bar anymore.

    #1043638
    Geoff
    Member

    Hi @cgcs and welcome to the forums!

    Sorry for the trouble here — is the issue with the calendar widget? If so, which widget is it, the Event List or the Mini Calendar? Are you able to see or add a widget to the sidebar when a default WordPress theme (like Twenty Fifteen) is installed and active?

    As a first course of action, will you please follow the steps outlined here and let me know what you find? That will be super helpful to help us figure what’s happening.

    Let’s start there and see what we find.

    Thanks!
    Geoff

    #1043741
    cgcs
    Participant

    Geoff,
    We have trouble with Mini Calendar on the sidebar.
    It was working there before I updated plugins.
    When I switch to Twenty Thirteen theme Mini Calendar appears on the page.
    Since we are using the custom themes is there a way to add mini calendar to the page with the code?

    Vlad

    #1044751
    Geoff
    Member

    Hey Vlad, thanks for following up!

    Does your theme have a different set of widget areas registered than Twenty Thirteen? You may need to add the widget to the sidebars specifically registered to the custom theme in order for them to display.

    That said, we certainly do have a shortcode for the mini calendar and you can add it to any page or post that way.

    Cheers!
    Geoff

    #1046056
    cgcs
    Participant

    Looks like the widget is added to custom theme
    (when go to theme –>customize there is The Event Calendar.)

    #1046062
    Geoff
    Member

    Just to clarify: when you say:

    Calendar is not on the left bar anymore.

    …are you referring to the front end of your site? In other words, you do not see the calendar in the sidebar in your site’s pages?

    Or are you referring to the left bar in the WordPress Customizer?

    Thanks!
    Geoff

    #1046063
    cgcs
    Participant

    Mini calendar was only on Events pages.
    http://www.global.asc.upenn.edu/events/

    #1046064
    Geoff
    Member

    Sorry, I’m still having some trouble following…

    A few questions:

    • Was the mini calendar on the /events page in the left sidebar of the page and now it is not?
    • Is there a widget area for the /events page when you go to Appearance > Widgets from the WordPress dashboard?
    • Have you tried switching your calendar template? You can do this by heading to Events > Settings > Display and changing the template to one of your themes templates instead of the default event template.

    Thanks!
    Geoff

    #1046394
    cgcs
    Participant

    Geoff,
    digging a bit more I found a template file that creates left sidebar for events page.
    It adds mini calendar with the following code:
    <?php
    $calendarOptions = array(‘title’ => null, ‘count’ => 0);
    the_widget(‘TribeEventsMiniCalendarWidget’, $calendarOptions);
    ?>
    Is this code correct or something changed?
    Thank you.

    Vlad

    • This reply was modified 10 years, 5 months ago by cgcs.
    #1046411
    Geoff
    Member

    Hi Vlad,

    Nice find!

    Yeah, that code seems a little outdated since our 4.0 release.

    The issue I see is with namespacing the Tribe Events class. I’m not sure this will work, but hopefully it at least gets you started:

    <?php
    $calendarOptions = array(‘title’ => null, ‘count’ => 0);
    the_widget(‘Tribe__Events__Pro__Mini_Calendar_Widget’, $calendarOptions);
    ?>

    Hopefully that does the trick but, if not, you can refer to the this file, which is where the mini widget is created:

    plugins/events-pro/src/Tribe/Mini_Calendar_Widget.php

    Cheers!
    Geoff

    #1046419
    cgcs
    Participant

    Geoff,
    It did the trick,
    mini calendar is back.
    Thanks for prompt response.

    Vlad

    #1046427
    Geoff
    Member

    My pleasure! That’s awesome to hear all is working well. Thanks a ton and happy holidays!

    Geoff

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘After Updating Calendar disappeared from the page.’ is closed to new replies.