Posted: October 9, 2012 at 8:52 am
|
Hi there The Calendar is not displaying on my page, the menu buttons are visible but nothing else. I have checked the footer and it correctly includes And I have created a new template with the the short code but still the same outcome. Can anyone help advise what to try next? |
Hi Rob, We’d be glad to take a look, what is the URL to the page that the calendar is on? |
|
|
Hi Josh! Impressive response time! http://www.walesworldwide.org/event-centre-calendar/ Currently only one event set up for 8th of Nov |
From looking at the page source, I can see that there are a few possibilities here. One is that the theme has hardcoded a version jQuery that is not included with WordPress. It’s best practice to load in the jQuery library that’s bundled with WordPress. There is some more information and some example code for how to fix this here: Although this may not be the only issue. There is also some embedded JavaScript in the mailchimp signup for in the footer widget, which is calling yet another version of the jQuery library. That needs to be removed. I don’t know if this is from a plugin, or the theme, or was pasted in, but this really should be removed:
This should be tracked down and removed, it looks to me like it is in a widget, but you may know right away where the code is coming from. It may also help to try deactivating some of the other plugins that are outputting JavaScript onto that page to narrow this down. |
|
|
Ok thanks Josh! I have removed the mailchimp code from the footer but this is not the issue. I will look into the fix you have posted above to see if I can get anywhere with this. I have noticed that the Calander page disables my drop down menu, is this of any help to you? Thanks |
Yeah, the mailchimp code actually does a check for jQuery, and if it’s loaded, it won’t load the other copy, which should be fine. If you can swap in the WordPress bundled version of jQuery, it should fix the issues you’re having. Here’s a copy of that page with the bundled version of jQuery swapped in: So if you look at this section of the WordPress codex: You’ll note the warnings there about loading a default WP script from a non-default location. So in the code example this:
can be changed to this as an example:
|
|
|
Ah I see! Okay before I look into the link you have posted I have located my functions file and found this;
} Am I looking at the correct piece of code? |
That looks like it, although not knowing what is before that ‘else’, I can’t say for sure. |
|
|
Thanks Josh I am out of the office until tomorrow so I will pick it back up then! Thanks for your help today! |
|
Hi Josh I have hosted a .txt version of my functions file here; http://www.walesworldwide.org/usefullinks/functions.txt are you able to advise which sections should be substituted. Also in doing so will this effect the rest of my website in any way? Thanks |
If
and
are removed, the WordPress bundled version of jQuery should load instead. If there’s another script somewhere that depends on jQuery, but isn’t declaring this dependancy, you can add this where you removed the above:
This may affect performance in the case where someone already had the google CDN version of jQuery cached in their browser, they would now need to load jQuery from your site instead. This can be overcome by installing the use google libraries plugin to safely load jQuery from Google. The site should be tested as it’s possible that some scripts may not have been written to be compatible with jQuery’s no-conflict mode. All of Event Espresso’s scripts are compatible with no-conflict mode, as well as core WordPress scripts, but I cannot make any guarantees for any other plugins or the theme’s scripts. |
|
|
Thanks Josh I will look into this! On another note I didn’t receive a follow-up email regarding this post although I checked “Notify me of follow…” just to bring to your attention. Cheers |
Hi Rob, Thanks for letting us know about the email follow up. We’ve been working on the the email component of the site, so there may be brief interruptions in the follow-up email service. We are working on getting this all sorted and hope to have it all working again soon. |
|
The support post ‘Calendar – Not Displaying’ 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.