Home › Forums › Calendar Products › Events Calendar PRO › View All not working on EC Pro
- This topic has 6 replies, 2 voices, and was last updated 8 years, 8 months ago by Nico.
-
AuthorPosts
-
August 27, 2015 at 2:05 am #999474Simon GrovesParticipant
Hi All,
I hope someone can help
We’re using the EC Pro plugin on a site we’re developing but oddly the ‘View As’ drop down isn’t displaying.
It loads then disappears. If I inspect the element I can see the following is applied from the plugins CSS.
#tribe-bar-views [name=tribe-bar-view] { display: none; }
I added a style to my own theme to display: block!important. Whilst it then appears, it then doesn’t function.
I’ve stripped out all CSS and any scripts in my theme but this makes no difference. I’ve gone through disabling all plugins but again, the same issue
It works on the 2015 theme though.
Any help is very much appreciated
Thanks in advanced!
August 27, 2015 at 8:05 am #999596NicoMemberHi Simon,
Thanks for reaching out to us, and sorry to hear about this issue. Hopefully I can help you with it π
Browsing the calendar page on your site I notice there are a couple of JavaScript errors in the console. If this works with Tweentyfifteen theme, I guess there’s a JavaScript conflict with your own theme.
To debug this, please comment out any JavaScript related code -importing external files in the template, queueing/dequeueing files in your functions.php file, custom code in the header/footer, etc- and test this again.
Please let me know about how this goes,
Best,
NicoAugust 27, 2015 at 8:12 am #999601Simon GrovesParticipantThanks Nico
From the 2 errors I can see:
Uncaught TypeError: $(...).on is not a function - /plugins/the-events-calendar/vendor/bootstrap-datepicker/js/bootstrap-datepicker.min.js?ver=3.2 Uncaught TypeError: c(...).on is not a function - /plugins/the-events-calendar/src/resources/js/tribe-events.min.js?ver=3.11.2
They both seem to relate to the plugin rather than the theme code?
Any help is much appreciated though!
ThanksAugust 27, 2015 at 8:25 am #999608NicoMemberHey Simon,
Thanks for the quick follow-up!
I know they both seem related with our plugin, but if they are not present with TweentyFifteen theme I guess it’s something on your theme getting in the way.
Can you please try to comment out this scripts from the footer of the site? I guess that might be the source of the issue!
<!-- START OF SCRIPTS -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script><!-- scrolling arrow -->
<script src="http://www.porterswinebar.com/2015/wp-content/themes/porters_wine_bar/js/arrow88.js" type="text/javascript"></script><!-- instagram -->
<script src="http://www.porterswinebar.com/2015/wp-content/themes/porters_wine_bar/js/snapwidget.js"></script>
Thanks,
NicoAugust 27, 2015 at 8:28 am #999610Simon GrovesParticipantThanks Nico.
I’ve totally removed all scripts from our theme but still have the issue π
August 28, 2015 at 4:09 am #999829Simon GrovesParticipantHi,
I’ve managed to finally resolve the issue.
It seemed a line of code in the functions file called in another jquery library, this was causing the issue
I’ve removed this and viola! It now works
Thanks
August 29, 2015 at 1:37 pm #1000230NicoMemberHey Simon,
Glad to hear you could solve this buddy π
Iβll go ahead and close out this thread, but if you need help with anything else please donβt hesitate to create a new one and we will be happy to assist you.
Best,
Nico -
AuthorPosts
- The topic ‘View All not working on EC Pro’ is closed to new replies.