-
AuthorSearch Results
-
November 22, 2017 at 8:38 am #1389150
Patricia
MemberHi David,
Thanks for your confirmation! In the Customize area, the select2 library is mainly used in our widgets.
You can remove the select2 library from The Events calendar by adding the following snippet to your theme’s functions.php file:
https://gist.github.com/nefeline/0bf2847962ee27089b6b40e69c673560
Please note that if you use this code to remove the Select2 library from The Events Calendar and don’t replace it with your own version of Select2, JavaScript will break on many pages.
It is also possible to remove the select2 library only from the customizer page with this snippet:
add_action( 'customize_controls_print_scripts', 'tribe_disable_select_js', 20 );
add_action( 'customize_controls_print_styles', 'tribe_disable_select_css', 20 );function tribe_disable_select_js() {
wp_deregister_script( 'tribe-select2' );
wp_dequeue_script( 'tribe-select2' );
}function tribe_disable_select_css() {
wp_deregister_style( 'tribe-select2-css' );
wp_dequeue_style( 'tribe-select2-css' );
}
I hope this helps. If you have any other questions in the meantime, please feel free to let me know and I’d be happy to help as best I can!
Cheers,
Patricia
November 21, 2017 at 11:09 am #1388383In reply to: Custom info in marker map
Patricia
MemberHi there,
Thank you for reaching out to us!
Before we begin, just to set expectations, the scope of our support is mostly to get our customers started on the right track and to help them in case of issues. We unfortunately do not provide complete support for customizations like this one.
The basic steps to achieve what you want are:
1- Dequeue our tribe-events-ajax-maps.js file:
https://gist.github.com/nefeline/124dcd0a975b4108198a859c365b3281
2- Enqueue your own custom js file via custom plugin.
3- Modify the content inside the infoWindow (the code you’ll have to change is in tribe-events-ajax-maps.js, lines 62-65):62 var content = TribeEventsPro.map_tooltip_event + content_title; 63 64 if ( address ) { 65 content = content + "<br/>" + TribeEventsPro.map_tooltip_address + address; 66 } 67 68 infoWindow.setContent( content );I hope this helps you get started! If you have any other questions at all please feel free to let me know and I’d be happy to help as best I can!
Cheers,
Patricia
November 21, 2017 at 10:32 am #1388329In reply to: Styling Google Maps API
Jaime Marchwinski
KeymasterHi Krystal,
Thanks so much for reaching out!
You can find out more information about templates and views that can be copied and edited in our Themer’s Guide:
https://theeventscalendar.com/knowledgebase/themers-guide/
Also, this extension can assist you in dequeueing available scripts:
https://theeventscalendar.com/extensions/dequeue-assets/
Let me know how it goes!
Thanks,
Jaime
November 20, 2017 at 4:23 am #1387038In reply to: How do I change the behavior on the tooltip?
Patricia
MemberHi Adam,
The name that we use to enqueue the tribe-events.min.js file is ‘tribe-events-calendar-script’, so to achieve what you want, please add the following snippet in your theme’s functions.php file:
https://gist.github.com/nefeline/cbef26d2b09737d217874d72b26a96b7
I tested it in my own WordPress install and the script was dequeued as expected.
I hope this helps!
Cheers,
Patricia
November 17, 2017 at 1:05 pm #1385994In reply to: How do I change the behavior on the tooltip?
Adam
ParticipantI am trying to dequeue the tribe-events.min.js file.
Here is my dequeue code I am putting in function.php in the child theme:
/* * dequeue tribe-events.min.js files */ function dequeue_tribe_events() { wp_dequeue_script( 'tribe-events' ); wp_deregister_script( 'tribe-events' ); } add_action( 'wp_print_scripts', 'dequeue_tribe_events', 100 );It doesn’t seem to be working since I can still find that file when I view source.
Have any tips?
November 16, 2017 at 7:47 pm #1385244Cliff
MemberI heard today that the latest Avada theme dequeues our Select2 so I gave it a look and they do
wp_dequeue_script( 'tribe-events-select2' );and then they enqueue their own Select2 CSS and Select2 JS for Select2 version 4.0.3
Therefore, it might be worth a try on your end if you wish.
November 16, 2017 at 2:08 am #1384345In reply to: Recent update breaks select2 elsewhere
Jacob Masters
ParticipantSeeing the same issue, select2 is breaking the ajax in my admin where ever else a select is used, temporary solution is to just disable it everywhere:
function tribe_dequeue_script_example() {
wp_deregister_script( ‘tribe-select2’ );
}
add_action( ‘wp_enqueue_scripts’, ‘tribe_dequeue_script_example’, 100 );add_action( ‘admin_enqueue_scripts’, ‘tribe_dequeue_script_example’, 100 );
November 15, 2017 at 11:46 pm #1384275In reply to: Events page broken when WPML is active on Pro theme
Geoff B.
MemberGood evening Bastien,
I made many tests on my end and the only thing that was successful in getting something to display was to remove the calls being made by the functions.php file of your theme (and adjusting the header accordingly).
So I do not believe this has to do with your customizations of the Events Calendar being deprecated. It sounds more like something is going very wrong whenever the WordPress Archives are being used (which our plugin relies on).
Also note that I’ve taken a deep look at the Translation Management page in WPML and couldn’t find where to translate both the “events” and “event” slug.
For now it is not possible to translate the “events” slug. Only the “event” one.
Technically, the method to do that would be to use the same one as for the date format translation, but we still have to work on this.The translation for “event” under the Multilingual setup tab of Translation management works great however (you might have to empty WPML’s cache and re-save your permalinks for that to kick in).
So in other words, this is not the cause of the issue. The issue in this case is theme-based.
You can try temporarily reverting back to a default WordPress theme such as twenty-sixteen to see what I mean.I realize this is not awesome, but it sounds like your best bet would be to dequeue all the includes from your theme one-by-one until you find the culprit(s).
Best regards,
Geoff B.
November 14, 2017 at 1:46 pm #1382963In reply to: How do I change the behavior on the tooltip?
Patricia
MemberHey Adam,
Thank you for reaching out to us!
The javascript file you want to modify is the-events-calendar/src/resources/js/tribe-events.js (and tribe-events.min.js). We don’t have a template override for these files, so you will have to make this change via custom extension/plugin. You have to dequeue our scripts & enqueue your own custom scripts after that.
On line 976, you can replace ‘mouseenter’ with ‘click’ to achieve what you want, but please bear in mind that you you will have to change other plugin templates, because if you click an event in month view calendar, it will lead you to the event’s page/URL and not open the tooltip as intended.
$container.on( 'mouseenter', 'div[id*="tribe-events-event-"], div.event-is-recurring', function() {We do have a list of recommended developers who could help you out with the code if necessary:
https://theeventscalendar.com/knowledgebase/find-a-customizer/
I hope this helps! Let me know if you have any other questions and I’ll be happy to assist!
Best Regards,
Patricia
November 14, 2017 at 12:10 am #1382192In reply to: RSVP Fields not appearing
Geoff B.
MemberHey Ben,
Thank you for writing back.
I agree with you, the recommended plugin is a surprising suggestion.I do not believe that will help with your situation.
I was wondering if you had any ideas / fixes for this issue?
Well, the “quick fix” is to remove line 38 of your functions.php file.
The obvious downside is that might break some of your theme’s functionality or styling (you would have to test to find out).Another solution would to try to see if you could not update the version of Superfish being used in the theme.
Finally, with some code, you could dequeue Superfish in Tribe (calendar) related pages. If coding is not really your cup of tea, you could always hire one of our recommended customizers to do the customization for you.
Let me know how that goes.
Best regards,
Geoff B.November 10, 2017 at 12:31 pm #1380204In reply to: IssueMag Pro
Jaime Marchwinski
KeymasterHi Shelly,
Thanks for reaching out! I’m sorry to hear that you are having a conflict with your theme.
One thing you can try is to dequeue the javascript files that are conflicting with our plugin. You can use this extension to do that:
https://theeventscalendar.com/extensions/dequeue-assets/
Another thing you can do is to reach out to your theme developers and see if they have any suggestions on this issue.
http://www.mojo-themes.com/item/issuemag-pro/#mojo-comments
Also, could you please send me a copy of the latest version of your WordPress theme / child theme via a link to a .zip file link (stored Dropbox or Google Drive) so that I can run some tests on my end ? I recommend a private reply for that purpose.
Please ensure you are using the latest files as found on your actual website.
This way I will get access to any updates or customizations you might have made.
Let me know how it goes and if you have any questions along the way!
Thanks,
Jaime
November 9, 2017 at 2:49 pm #1379493Cliff
MemberIf we were to dequeue our Select2 only while using the Customizer, do you think that would solve the issue?
Or is this issue happening outside the Customizer somewhere, too?
November 9, 2017 at 2:21 pm #1379458In reply to: CSS overrides work on localhost, but not remotely.
Brendan
KeymasterHi Alex,
Sorry you are experiencing issues with the styling. This can happen at times especially in custom development situations. You may want to try this extension to dequeue Tribe styles to give you more flexibilty to implement your styles. Its not part of our plugin and not supported but should help your situation.
You can find the extension here: https://theeventscalendar.com/extensions/dequeue-assets/
Go ahead and try that out and let me know if it works.
Thanks,
BrendanNovember 9, 2017 at 1:07 pm #1379353Cliff
MemberThat screenshot gives the URL to CSS files but not JS files.
Either way, yes, I’d guess there’s a conflict. We have it on our to-do list to transition to the latest version or its successor, SelectWoo.
At this point, I’d say it’s just a conflict between our plugin and their theme.
It might be weeks or months before we complete this transition, as it’s a large to-do.
If we were to dequeue our Select2 only while using the Customizer, do you think that would solve the issue?
I marked this thread as Pending Fix, which means it should receive a reply once the applicable fix has been released. I cannot guarantee when it will be fixed as it’s in the development team’s hands now.
I apologize for this issue and appreciate your understanding and patience.
November 8, 2017 at 3:51 pm #1378555In reply to: Can't dequeue style
Barry
MemberHi Andy,
Thanks for contacting us!
Please note we can’t provide in-depth support for customizations like this one, but I’d be happy to bat a few ideas around and even point you in the right direction if I can 🙂
In this case, how about keeping your snippet “as is” but add the following line to the bottom:
add_action( 'tribe_events_pro_tribe_events_shortcode_post_render', 'dequeue_tribe_styles' );
Might that help with this?
-
AuthorSearch Results
