Home › Forums › Calendar Products › Events Calendar PRO › After / Problem with the function tribe_get_listview_prev_link ()
- This topic has 24 replies, 2 voices, and was last updated 6 years, 2 months ago by Rivet.
-
AuthorPosts
-
January 9, 2018 at 8:38 am #1421500RivetParticipant
Hello,
the following problem in both topics is still not resolved despite the proposed solutions. What should I do ?
Thank you.
January 10, 2018 at 10:08 pm #1423244BrendanKeymasterHi there,
Can you also try testing for conflicts with your theme and other plugins? If you would prefer not to do this on your live site, WP Staging will let you create a quick copy of your live site that you can use for testing. Let me know what you find!
Thanks,
BrendanJanuary 11, 2018 at 3:30 am #1423353RivetParticipantHello,
Yes I tried.
I noticed several error messages in attachments. That would come from there?
January 11, 2018 at 8:08 pm #1424296BrendanKeymasterHi There,
I see. Looks like something is missing from code or may be corrupted. Can you please reinstall our plugins. Just delete them and reinstall them. All of your database info will still be there so you don’t need to worry about losing info. But as always, make a backup.
Thanks,
BrendanJanuary 12, 2018 at 6:31 am #1424597RivetParticipantHello,
I did it but it did not change anything.
January 12, 2018 at 10:21 pm #1425410BrendanKeymasterHi Rivet,
Based on the console errors, it looks like there is a jquery mismatch. Are you able to reinstall wordpress to the latest version?
Let me see how that goes.
Thanks,
Brendan
January 15, 2018 at 7:02 am #1426515RivetParticipantNo. In addition, the multisite is online, is not this a problem ?
Would you have another proposal? A tool to detect Jquery error or conflict?
January 17, 2018 at 1:15 pm #1428897BrendanKeymasterHi Rivet,
We do not have a tool to detect the error in jquery. However with others they have updated jquery to the latest version. You may want to check your theme functions.php and make sure its using the latest version of jquery as well.
Thanks,
BrendanersJanuary 18, 2018 at 5:45 am #1429333RivetParticipanthello,
actually when I paste this piece of code into my functions.php file the plugin works again.
if( !is_admin()){
wp_deregister_script('jquery');
wp_register_script('jquery','http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js', false, '');
wp_enqueue_script('jquery');
};But how do I target only the list view page? Because for the moment this solution breaks the other plugins (revolution slider).
Thanks, P.
January 22, 2018 at 11:54 am #1432706BrendanKeymasterHi there,
To customize the script you can add view conditionals such as: tribe_is_month(), tribe_is_day(), tribe_is_list_view(), etc or account for other situations like: tribe_is_event_category(), tribe_is_event_venue() or tribe_is_event_organizer(). It all depends on what you are looking for!
If you just want to amend the previous snippet try replacing: && ! is_singular( ‘tribe_events’ ) with && ! is_singular( ) and that should de the trick for you.
Please let me know if this helps,
Best,
BrendanJanuary 24, 2018 at 3:51 am #1434461RivetParticipantHello, I wish to target only the type of page that is problematic, the type list view. But when I try the code below it does not work, while with !is_admin() it works. An idea ?
if( tribe_is_list_view()){
wp_deregister_script('jquery');
wp_register_script('jquery','http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js', false, '');
wp_enqueue_script('jquery');
};Thanks, P.
January 24, 2018 at 4:39 pm #1435290BrendanKeymasterHi there,
So are you using !is_admin and the ‘&&’ tribe_is_list_view? Or just what you sent?
Thanks,
BrendanJanuary 25, 2018 at 9:17 am #1436065RivetParticipantI just tried the code below and it does not work:
if( !is_admin() && tribe_is_list_view()){
wp_deregister_script('jquery');
wp_register_script('jquery','http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js', false, '');
wp_enqueue_script('jquery');
};So, after i tried the code below and the link works for 1 or 2 seconds then it bug again ?? :
if( !is_admin() AND tribe_is_list_view() || tribe_is_showing_all()){
wp_deregister_script('jquery');
wp_register_script('jquery','http://ajax.googleapis.com/ajax/libs/jquery/3/jquery.min.js', false, '');
wp_enqueue_script('jquery');
};Here is a link to the page:
https://viacampesina.org/fr/evenements/Thanks, P.
- This reply was modified 6 years, 3 months ago by Rivet.
January 25, 2018 at 9:19 am #1436070January 26, 2018 at 7:54 pm #1437723BrendanKeymasterHi Rivet,
I see there is an error with piwik. What happens when you disable that plugin?
Thanks,
Brendan -
AuthorPosts
- The topic ‘After / Problem with the function tribe_get_listview_prev_link ()’ is closed to new replies.