Support

Home Forums Events Calendar Add-on Calendar Fix created new problem

Calendar Fix created new problem

Posted: January 30, 2016 at 4:28 pm

Viewing 7 reply threads


SEMSniper

January 30, 2016 at 4:28 pm

Yesterday Lorenzo supplied a plugin jquery fix for the calendar add-on so that events would show. Unfortunately, it has cause our testimonials banner rotation to stop showing. when i disabled the plugin, the testimonials began to show and calendar events stopped showing.

If you go here: http://www.canaphem.ca/ and scroll down, just above latest News is where the testimonial should show. If you look in the source, the text is there.
Calendar is here http://www.canaphem.ca/calendar/


Tony

  • Support Staff

February 1, 2016 at 9:17 am

It looks like the testimonials are from a feature within the theme, is that correct?

If so it is likely the code used for the testimonials is reliant on the version of jQuery that ships with the Cherry Framework. The code Lorenzo provided removes that and loads the version of jQuery that loads with WordPress (which is the correct version to use)

You’ll need to issue a support ticket with the theme developers and see if they can provide a solution for this. Ideally they should not be loading their own version of jQuery, see here for why:

https://pippinsplugins.com/why-loading-your-own-jquery-is-irresponsible/


SEMSniper

February 2, 2016 at 8:02 am

Hi Tony, Thanks alot for the reply and the info.
I wonder if the fix can be applied only to the calendar page?

i will contact support


Tony

  • Support Staff

February 2, 2016 at 10:08 am

Yes it can, but that’s a work around rather than a solution. Issues like this could pop up in multiple places when the theme adds its own jQuery version.

So currently with the code Lorenzo previously provided you have this on line 9 of the plugin:

add_action('wp_enqueue_scripts', 'update_jquery_for_cherry_framework', 11);

Change that to:

if(is_page( 'calendar' ) ) add_action('wp_enqueue_scripts', 'update_jquery_for_cherry_framework', 11);

Lorenzo’s code will then only run on a page call ‘calendar’.

Also could you please log into the account that has your support license assigned to it and post using that account.


SEMSniper

February 2, 2016 at 10:59 am

Thanks for that Tony!
It worked for getting the testimonials back on the site, however the contents of the Calendar is missing again.

yes, new topics i will log in as the licensee, sorry keep forgetting


Lorenzo Orlando Caum

  • Support Staff

February 2, 2016 at 11:34 am

Hi, its broken again because jQuery 1.7.2 is being loaded and that is an old version. Did you edit the site specific plugin and then reactivate it through the WordPress plugins page?


Lorenzo


SEMSniper

February 2, 2016 at 2:17 pm

No, i just edited the file from the plugin area


Josh

  • Support Staff

February 2, 2016 at 4:14 pm

The best way forward here is to ask the theme author to fix their theme. We can give you workarounds, but as you’ve seen, they’re not going to be 100% compatible with the theme.

Viewing 7 reply threads

The support post ‘Calendar Fix created new problem’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso