Forum Replies Created
-
AuthorPosts
-
Kyle
ParticipantHi Thomas,
The class is added in lib/tribe-filter-view.class.php using the body_class filter. Tell me, in your theme’s header.php does you tag have inside of it? This is required for classes added through body_class to be applied.
Cheers,
KyleSeptember 26, 2013 at 3:51 pm in reply to: The plugin is using Select2 version 3.2 (outdated) and calls deprecated methods #67891Kyle
ParticipantHi Thomas,
While running TEC 3.0.3 without pro, I can’t get the plugin’s copy of select2 to load on the front end, even when I call .select2() in my theme, though you are right we still use it a couple places in the admin.
If our copy of select2 is getting loaded on the front end, try dequeuing ‘tribe-events-select2’ in your theme’s functions file.
As far as the select2 functions that still exist in our plugin, i’m going to leave a note for our resident JS guy to weight on this.
Cheers,
KyleSeptember 19, 2013 at 3:07 pm in reply to: The plugin is using Select2 version 3.2 (outdated) and calls deprecated methods #66877Kyle
ParticipantHi again, Thomas!
Are you running verion 3.0.3 of TEC and 3.0.5 of TEC Pro? Select2 was compeltely removed from the front end as of 3.0.3. Is select2 being called on select items elsewhere such as in the theme itself or another plugin?
Cheers,
KyleKyle
ParticipantHi Thomas!
We’re hiding the elements individually like this:
.tribe-events-filter-view.tribe-filters-closed #tribe_events_filters_form,
.tribe-events-filter-view.tribe-filters-closed .tribe-events-filters-label,
.tribe-events-filter-view.tribe-filters-closed #tribe_events_filters_reset {
display:none;
}
We hide them individually because the horizontal filters are layed out a little differently and hiding .tribe-events-filters-content would hide the horizontal filters’ toggle.
Do you have the .tribe-events-filter-view body class present? Truthfully, we could probably remove the dependency on this body class to toggle the filters, but in its current form, that missing body class could be the culprit.
Also, are you getting any console errors? I see in the tribe bar Views dropdown that you have some doubling going on with a select2 element and our standard views select. Wondering if any JS is getting jammed somewhere.
Are you running 3.0.3 of TEC and 3.0.5 of TEC Pro? Select2 was completely removed from the front-end as of 3.0.3.Cheers,
KyleKyle
ParticipantHi everyone,
I was able to replicate this issue when I have Woocommerce Subscriptions enabled. Do all of you have this add-on activated? In anycase, try this gist inside your theme’s functions.php
https://gist.github.com/windfarm/6225952
It will prevent Woo’s admin styles from loading when adding a new event. Please let me know if this fixes things, if problems persist, or this causes other issues.
Cheers,
KyleKyle
ParticipantHi Todd,
Before you create a new thread, I saw this and wanted to respond. You are right, we do need a unique class on the tribe-events-meta-group that houses the map in the first meta section. I’ve added unique classes to each meta group in the next maintenance release. For the time being you can put the following function in your theme’s functions.php https://gist.github.com/windfarm/6221379
I’m just rewriting the tribe_events_single_event_meta() as-is and manually adding a class of ‘tribe-events-meta-venue-map’ to that section. Sorry about this, thanks for bringing it to our attention!
Cheers,
KyleKyle
ParticipantHey wmglennosborne,
Looks like your theme isn’t supporting the body_class() function, so some styles aren’t being applied. Try putting this in your theme:
.tribe-events-venue-map {
width: 58%;
margin: 20px 4% 2% 0;
padding: 5px;
float: right;
background: #EEE;
border: 1px solid #DDD;
border-radius: 3px;
display: inline-block;
zoom: 1;
vertical-align: top;
}Steve, this is the default styling for the venue map: http://kunzi.me/6cNm
If you added a file called “tribe-events.css” in a folder called “tribe-events” inside your theme, you can add that code and tweak the values to what you are looking for, particularly the width, and your map should follow suit. For instance, here is the default: http://kunzi.me/OtHv and here it is after I changed the width to 40%: http://kunzi.me/LXvG
Cheers,
KyleAugust 9, 2013 at 12:38 pm in reply to: Losing Mouseover on Calendar Displayed on Home/Front Page #59739Kyle
ParticipantHi Amanda,
I added some css that should bump up the tooltips for you. I also re-implemented the changes I had suggested earlier to get the tooltips in the first place. -link to theme removed-
Cheers,
Kyle
August 9, 2013 at 6:49 am in reply to: Losing Mouseover on Calendar Displayed on Home/Front Page #59678Kyle
ParticipantHi Amanda,
A filesharing app like Droplr would do the trick quite nicely! https://droplr.com/hello
Upload, and paste the link here. Be sure to set your reply as private if you want to prevent others from seeing the link.Cheers,
KyleKyle
ParticipantHi Steve,
Which map would you like to resize (single event view, venue view, map view)? I can try to offer you some sample CSS to resize that.
Cheers,
KyleAugust 8, 2013 at 3:17 pm in reply to: Losing Mouseover on Calendar Displayed on Home/Front Page #59574Kyle
ParticipantHi Amanda,
Could you zip up your child theme and upload so I can test the full thing? Hopefully with a bit of css, I can prevent the tooltips from displaying directly over the calendar day.
Cheers,
KyleAugust 6, 2013 at 4:01 pm in reply to: Losing Mouseover on Calendar Displayed on Home/Front Page #59181Kyle
ParticipantHi Amanda,
Let’s try this in your functions.php in place of what you put there previously:
function enqueue_month_view_scripts() {
if ( is_front_page() || is_home() ) {
Tribe_Template_Factory::asset_package('bootstrap-datepicker');
Tribe_Template_Factory::asset_package('ajax-calendar');
Tribe_Template_Factory::asset_package('events-css');
Tribe_Template_Factory::asset_package('calendar-script');}
}
add_action(‘wp_enqueue_scripts’, ‘enqueue_month_view_scripts’);Secondly, where you modified your page.php to include the month view, let’s modify to this: http://pastebin.com/PUgVT4e9
The operative change here is wrapping it in the div #tribe-events
These 2 changes gave me tooltips on the home page on my local install. Let me know these changes solve things for you!
Cheers,
KyleKyle
ParticipantHi Michael,
I see you are wanting to unhook tribe-events.min.js .Since you are running pro, tribe-events-pro.min.js is being loaded, which has a dependency on tribe-events.min.js . In turn, tribe-events.min.js has dependencies on bootstrap-datepicker, ba-resize, and placeholder. tribe-events-bar.js also relies on these scripts.
To unhook the entire list of scripts you mentioned, you will need to either modify the script dependencies or unhook the scripts that have the dependencies as well.
For instance:
function dequeue_tribe_events_scripts_and_styles() {
wp_dequeue_script( 'tribe-events-pro-geoloc' );
wp_dequeue_script( 'tribe-events-list' );
wp_dequeue_script( 'tribe-events-pro' ); // relies on tribe-events-calendar-script
wp_dequeue_script( 'tribe-events-calendar-script' ); // relies on placeholder, resize, datepicker
wp_dequeue_script( 'tribe-events-bar' ); // relies on placeholder, resize, datepicker
wp_dequeue_script( 'tribe-events-bootstrap-datepicker' );
wp_dequeue_script( 'tribe-placeholder' );
wp_dequeue_script( 'tribe-events-jquery-resize' );
}
add_action('wp_enqueue_scripts', 'dequeue_tribe_events_scripts_and_styles', 100 );
Unhooking dependencies is a little tricker, but can be done with something like this:
function change_tribe_js_dependencies( $handle, $dep ) {
global $wp_scripts;if( in_array( $dep, $wp_scripts->registered[$handle]->deps ) ){
$key = array_search($dep, $wp_scripts->registered[$handle]->deps);
unset($wp_scripts->registered[$handle]->deps[$key]);
}return true;
}function remove_tribe_events_js_dependencies() {
change_tribe_js_dependencies(‘tribe-events-bar’,’tribe-events-calendar-script’);
}
add_action( ‘wp_enqueue_scripts’, ‘remove_tribe_events_js_dependencies’, 10 );That example removes the dependency on ‘tribe-events-calendar-script’ that ‘tribe-events-bar’ has. That means you can dequeue tribe-events-pro (tribe-events-pro.min.js), and tribe-events-calendar-script (tribe-events.min.js) but still load tribe-events-bar.min.js without it loading tribe-events.min.js
You can use this method if you want to load tribe-events-bar.min.js, but not, say, jquery.placeholder.min.js . Both tribe-events-bar.min.js and tribe-events.min.js depend on jquery.placeholder.min.js, so you’d either need to dequeue both of those as well, or remove the dependency for each.
As I reference these options, I see some work that we can do in keeping naming conventions consistent, particuarly naming the handle the same as the file name whenever possible. 🙂
hin
Tracking down the dependencies may be a bit confusing if you are looking to only some scripts and not all, but in lieue of documentation on this, you can look in lib/tribe-template-factory.class.php for a list of the scripts being loaded and their dependencies in the asset_package function.Let me know if this answers your question!
Cheers,
KyleKyle
ParticipantHi Michael,
I completely understand your frustration. We’ve had an influx of support questions which is natural with a large launch such as this coupled with the departure of one of our support mavens, however, five days for a response is regrettable and I apologize.
I also agree with your sentiments on documentation and we are in the process of providing more of it, including customizing the single event meta, specifically. Also, I’m not sure if you’ve seen our Themer’s Guide (https://theeventscalendar.com/support/documentation/events-calendar-themers-guide/#customfiles), but it has been updated to reflect version 3.0, though modifying single event meta is noticeably absent. Our goal is to offer the API documentation currently found at docs.tri.be along with human generated examples of common things users who are looking to customize might want to do. I know that “we are working on it” doesn’t help you in the short term, but please know that we take feedback like this very seriously, and I look forward to offering you and others more tools to make awesome stuff.
Thank you again for your patience thus far, and for your insight and feedback!
Cheers,
KyleKyle
ParticipantHi Michael,
As Reid said, our team is actively in discussion on ways to consolidate scripts and styles for an upcoming release. I can say that we released a maintenance update today that fixes the identical stylesheet loading that you reported (thank you so much for the heads up, apologies for the oversight) as well as removed scripts and styles being loaded from the select2 library which we are no longer using on the front-end of the plugin.
As far as unhooking other scripts and styles as you wish, you can do so in your theme’s functions file with something like this:
function dequeue_tribe_events_scripts_and_styles() {
wp_dequeue_style( 'tribe_events-calendar-style' );
wp_dequeue_script( 'tribe-events-pro-geoloc' );
}
add_action('wp_enqueue_scripts', 'dequeue_tribe_events_scripts_and_styles', 100 );
This example would dequeue the main stylesheet, and the map js. use wp_dequeue_style and wp_dequeue_script with the name of the handle of the file you’d like to unhook. If you would like help with a specific file, I’d be happy to help out.
Cheers,
Kyle -
AuthorPosts
