Home › Forums › Calendar Products › Events Calendar PRO › Calendar Widget broken (possible jQuery problem)
- This topic has 7 replies, 2 voices, and was last updated 9 years, 11 months ago by Barry.
-
AuthorPosts
-
May 21, 2014 at 6:27 am #168851barn2mediaParticipant
Hello,
I’m using the Calendar widget about half way down the homepage of a development website and unfortunately the ajax does not work. When clicking on a date, we are sent to the top of the page instead of ajax loading the correct events.
Although when I deactivate the theme (Shoppica) and activate the default 2014 it works, I’m wondering if you have any experience of what may be going wrong.
There may be a conflict somewhere but the error console does not bring up any related error.
Are you able to provide any help or do you only offer support when using the default WordPress theme?
Regards,
StevenMay 21, 2014 at 10:25 am #169245BarryMemberHi Steven,
Certainly it becomes trickier when support issues relate to specific, non-default themes but we’re always happy to take a look and see if anything jumps out at us.
In this case, can I ask you to confirm (by private reply if you prefer) how I can access your site? I see you provided a password but it doesn’t seem to work (perhaps it was cut off?).
Thanks!
May 22, 2014 at 3:19 am #170126barn2mediaParticipantHi Bary,
Sorry, you should be able to use the password in in the previous post now. I think the holding page was being temperamental as the password was reset but it’s been put back now.
Regards,
StevenMay 22, 2014 at 1:44 pm #170789BarryMemberThanks!
I suspect the problem is with how the sidebar has been registered by your theme. When I look at the HTML I see this wrapper:
<div class="wpb_content_element span6 wpb_text_column"> <!-- ... the widget itself ... --> </div>
Ordinarily I’d expect to see some other classes and an ID being applied, something like:
<div id="tribe-mini-calendar-x" class="wpb_content_element span6 wpb_text_column widget tribe_mini_calendar_widget"> <!-- ... the widget itself ... --> </div>
Having those in place is essential for this widget to function as expected. A common source of this problem is when themes register sidebars but don’t provide a before_widget parameter in the general form seen here – so that’s a strong possibility and it may be worth taking this back to the theme author and asking if they’ll make a change or, if you feel confident doing so, opening up the code yourself and making the required change.
Does that help at all?
May 23, 2014 at 8:56 am #172073barn2mediaParticipantHi Barry,
Ah I see, the widget is being registered with a before_widget parameter but it wasn’t making use of the default ID and classes. So I think this is why the calendar ID and classes were not being automatically applied.
I updated the register widget function and the correct calendar ID and classes are being called now but the same problem still remains.
These changes can be seen on the site, do you know of any other possible cause for this. It’s difficult to track without any console errors.
Many thanks,
StevenMay 26, 2014 at 6:38 am #177358BarryMemberHi Steven,
Something still doesn’t look right there. I see this class being applied to the widget container:
s_tribe_mini_calendar_widget
Ordinarily I’d expect this to be (no leading “s_”):
tribe_mini_calendar_widget
Is it possible a typo crept in when changing the code to register the sidebar, or something else of that order?
May 26, 2014 at 7:05 am #177462barn2mediaParticipantHi Barry,
Excellent and thanks very much, this is now sorted and I’ve removed the “s_” from the class.
Regards,
StevenMay 26, 2014 at 7:39 am #177556BarryMemberAwesome – I’ll go ahead and close this thread (but definitely feel free to create new threads as needed if you hit any other issues).
We’re also always interested in hearing your thoughts and experiences with The Events Calendar so far if you had a moment and wished to leave a review 🙂
Thanks!
-
AuthorPosts
- The topic ‘Calendar Widget broken (possible jQuery problem)’ is closed to new replies.