Home › Forums › Calendar Products › Events Calendar PRO › Mini Calendar error outside WordPress
- This topic has 7 replies, 3 voices, and was last updated 10 years, 2 months ago by
Support Droid.
-
AuthorPosts
-
January 4, 2016 at 11:05 am #1049963
Stefhan
ParticipantHi,
I have a glitch with the Mini Calendar widget in Events Calendar Pro, I’m hoping someone can help with. The site I’m working on has a front page which sits outside WordPress, although it does query the database. I’ve put the Events Calendar Pro Mini Calendar widget on that page, and while it works pretty well, it won’t scroll to the next or previous months.
Everything else looks fine apart from that one issue.
When I load the page in Firefox with Firebug running (in Console > Errors view), I get the following error:
TypeError: $widget_wrapper.on is not a function
$widget_wrapper
The widget works fine within WordPress. It seems like there’s just one file not loading which causes it to fail, but I can’t figure out which!
Any help would be much appreciated!
January 5, 2016 at 9:48 pm #1050875Brook
ParticipantHowdy Stefhan,
I would love to help you with this. I bet that this could be fixed by adding a call to wp_head() in the <head> of your document. Perhaps you will need to call wp_footer() before the closing </body> tag. Does that make the widget start working?
Cheers!
– Brook
January 13, 2016 at 3:35 am #1055039Stefhan
ParticipantThanks Brook. I’ve checked that but it still doesn’t work unfortuantely. It seems to be missing some vital component.
Any more suggestions would be most welcome!
Thanks
January 13, 2016 at 11:07 am #1055471Brook
ParticipantYou’re welcome!
In that case my suspicions have shifted back to what the error message says – that one of the HTML wrappers is missing and so our script doesn’t know what to target. Typically .tribe-mini-calendar-wrapper is wrapped in a parent div. Is yours?
If it is wrapped, can you share the code that powers this page? Also a link to the page would be helpful if you have a live one. I can then compare that with the wrappers the widget normally has and see if I can find the missing one.
Cheers!
– Brook
January 14, 2016 at 2:22 am #1055781Stefhan
ParticipantThanks Brook. Much appreciated.
I’m working on a test version of the page here:
http://artsalivewales.org.uk/index-2015-3.php
And comparing it to a page within WordPress where the calendar’s working fine:
http://artsalivewales.org.uk/wp/events/category/classes/
Will add the code for the first page (the faulty one) in a separate message.
Thanks again!
January 14, 2016 at 2:23 am #1055782Stefhan
ParticipantThis reply is private.
January 18, 2016 at 8:49 am #1057925Brook
ParticipantThanks for sharing the link! You are running jQuery 1.2.6. Our plugin is built to be compatible with the latest jQuerys. If you can just upgrade jQuery the issue should go away. 🙂
Does that work?
Cheers!
– Brook
February 18, 2016 at 8:34 am #1076868Support Droid
KeymasterThis 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. -
AuthorPosts
- The topic ‘Mini Calendar error outside WordPress’ is closed to new replies.
