Search Results for 'dequeue'

Home Forums Search Search Results for 'dequeue'

Viewing 15 results - 181 through 195 (of 274 total)
  • Author
    Search Results
  • #968775
    Nico
    Member

    Hi Nigel,

    Thanks for activating the theme. Now I can confirm this a conflict with how jQuery is being handled by the theme. Instead of loading jQuery library from the WordPress core it’s loading it from the theme folder. Which is not bad at all but that seems to be the problem.

    As this is not a problem with our plugin it self, but with the theme’s custom code I’m afraid this is out of our support scope. Apart from pointing you into the right direction, I can’t dig into your code and try to find a solution.

    That being said, let me give you an idea that might help you find a work around this problem. You’ll probably find wp_deregister_script(‘jquery’) and/or wp_dequeue_script(‘jquery’) in you theme’s functions.php file. Those functions are used to prevent jQuery being loaded from the core, comment those out. Also comment out the lines where you are importing jQuery from the theme folder and check if it works.

    Additionally you have a malformed script tag in this line, most probably this in not affecting the Events Calendar at all but I thought it was worth letting you know:

    <script src="http://dev.touch-akl.com/meba/wp-content/themes/beanstalk/bower_components/foundation/tables/responsive-tables.js"</script>
    // replace with
    <script src="http://dev.touch-akl.com/meba/wp-content/themes/beanstalk/bower_components/foundation/tables/responsive-tables.js"></script>

    I hope you can tackle this soon,
    Thanks,
    Nico

    #964462
    Geoff
    Member

    Hi Varun,

    That’s an excellent question. At the same time, I’m afraid this would require a level of custom development that we aren’t able to support here in the forums. I do see that there is a feature request for better BuddyPress integration–I’d suggest adding your vote, which will provide notifications as updates are available.

    I also came across this article that outlines how someone was able to add the Filter Bar to a site’s homepage–perhaps this would be a nice starting point for integrating it into a BuddyPress group template.

    Lastly, I was also able to find this thread that provides a list of the scripts to enqueue for the calendar.

    Sorry I don’t have a concrete answer for you here, but I do hope this helps at least get you started in the right direction. 🙂

    Cheers!
    Geoff

    Geoff
    Member

    Hello Rami–thanks for getting in touch and welcome to the forums. 🙂

    I would like to add the “Event Categories” that I have already specified in each event as a sidebar widget.

    We do have a plugin that will help with that called Filter Bar. You could use that to display available categories and allow the visitor to filter the calendar by category.

    There’s also another plugin that is free called Category Colors. It doesn’t exactly filter events by category, but does color code events by category and provides a legend of those categories to the calendar.

    I upgraded to the Pro version – and seemed to have messed up my Upcoming events sidebar widget.

    Oh shoot, I see what you mean. Yeah, selecting “Skeleton Styles” sill apply those styles across the entire plugin.

    One idea might be to dequeue the stylesheet for The Events Calendar from the page template the widget appears on. For example, that might look something like this in your theme’s functions.php file. I have tested this, but it generally follows the method to dequeue styles outlined in the WordPress Codex:

    https://gist.github.com/geoffgraham/d374876de3344afb3da5

    Cheers!
    Geoff

    #959196
    Barry
    Member

    Hi James,

    Right now you’d need to modify a core plugin file (the-events-calendar/resources/embedded-map.js) to make this change.

    Typically we wouldn’t recommend that approach – primarily because it will be overwritten when next you update – but it’s certainly possible if you want to give it a go.

    A more robust and future proof approach, though it’s not for everyone, would be to dequeue that same script and replace it with your own (which could be based on the original).

    I hope that gives you a few ideas you can explore 🙂

    #958166

    In reply to: Combining CSS files

    Chris
    Participant

    Thanks for your help,

    That did work to remove most of the scripts. I did find a couple more.

    wp_dequeue_style( ‘tribe_events-widget-calendar-pro-style’ );
    wp_dequeue_style( ‘tribe_events–widget-calendar-pro-override-style’ );
    wp_dequeue_style( ‘tribe-events-calendar-pro-override-style’ );

    I’d love a SASS version of the styles for The Events Calendar, if you were ever thinking of future enhancements. The plugin is awesome, but adds a ton of HTTPS requests, and the styles, though effective, could be reduced in size.

    #958025

    In reply to: Combining CSS files

    Zach Tirrell
    Keymaster

    Hi Chris,

    Turning off all of the CSS is relatively straightforward, you just have to dequeue all of our CSS.

    I think this snippet should do exactly what you are looking for: https://gist.github.com/ckpicker/ffe7c737b73e5d581bad

    Let me know if that works for you.

    #951323
    Matthew
    Member

    Howdy Marty – that’s a solid question!

    Disabling Ajax-driven paging on the month and the day view works swimmingly with this tip. But, as you’re experience has shown you, non-Ajax pagination on the list view doesn’t work so well.  The good news is, your code looks pretty good and with a few tweaks I think we may be able to find a solution that should work.  Can you try a few tweaks for me and let me know how they go?

    First, make sure this is in your functions.php file:

    
    /**
     * Remove Ajax from The Events Calendar Pagination on List View
     * @3.8
     *
     */
    add_action('wp_print_scripts', 'events_calendar_remove_scripts' , 10);
    function events_calendar_remove_scripts() {
      wp_dequeue_script( 'tribe-events-list');
    }
    

    Next, try tweaking your spellerberg_* functions to make use of the tribe_get_listview_link() in place of any of the calls to tribe_get_past_link() and tribe_get_upcoming_link().  That function returns the List view URL used by the List view JS to build the previous/next Ajax requests.  My quick test of your functions with that change gave me some promising results!

    Does that help point you in the right direction?

    #951222
    Geoff
    Member

    Hey there, Spencer! Welcome back and nice to to see you again and sorry this issue with the map is coming up.

    I checked the site out (thanks for the link!) and noticed that the following error comes up in the console when I inspect element:

    You have included the Google Maps API multiple times on this page. This may cause unexpected errors.

    Is it possible that your theme is calling the Google Map API a second time here? If so, it’s a good idea to dequeue it from any events pages since The Events Calendar calls it already. Calling it multiple times can definitely create a conflict like this. 🙂

    Are you able to give that a try? Please let me know what you find.

    Cheers!
    Geoff

    #943334
    Geoff
    Member

    Thanks for giving me access!

    Yeah, I don’t see anything obvious right off the bat. The console is clean, for sure.

    I see that the theme injects several JS files in the header and footer. Perhaps try dequeuing those one at a time to see if one of them is specifically conflicting with the plugin. You can use conditional logic (many examples here) when using wp_dequeue_script() so that those scripts are specifically removed from calendar pages.

    For example, to dequeue from the Week View:

    if ( tribe_is_week() {
    // Your dequeue snippet
    }

    Hopefully the theme author will be able to help shed some light as well. 🙂

    Cheers!
    Geoff

    #940293

    Hi again Geoff,

    Nevermind my last post, that file belongs to a plugin we are not longer using. I found the following code on my theme’s functions.php file:

    $http = 'http'; if (is_ssl()) $http = 'https'; wp_register_script('et-googlemap-api', $http . '://maps.googleapis.com/maps/api/js?sensor=true', '3.0', true);

    This is inside a function being called with the “init” action. How can I dequeue the script just for the Events page?

    Thanks,

    #940287

    Hello Geoff,

    As you pointed out, the problem is that the Google Maps API is being called twice. Once by the CM ad changer plugin and the other by The Events Calendar. Can I dequeue the one from Events Calendar? I found the following code in module-map.php

    class TB_Map_Module extends Themify_Builder_Module {
    	function __construct() {
    		parent::__construct(array(
    			'name' => __('Map', 'themify'),
    			'slug' => 'map'
    		));
    
    		add_action( 'wp_enqueue_scripts', array( $this, 'load_map_script' ) );
    	}
    
    	function load_map_script() {
    		//Register map scripts
    		wp_register_script( 'themify-builder-map-script', themify_https_esc( 'http://maps.google.com/maps/api/js' ) . '?sensor=false', array(), false, true );
    	}
    }

    How can I dequeue the script?

    #940271
    Geoff
    Member

    Hi there, Joshua! Thanks for getting in in touch and sorry you’re hitting some trouble here with the display order of events.

    I definitely see what you’re describing: events are ordered chronologically on the main events page, but then change to reverse chronological on the subsequent pages. That’s definitely not expected behavior and I was unable to reproduce the issue locally on my setup.

    First off, I do see the following error in the console:

    You have included the Google Maps API multiple times on this page. This may cause unexpected errors.

    Are you able to dequeue the second Google Maps script from calendar pages? The Events Calendar already comes packages with it and adding it a second time can cause conflicts, and could possibly be at play in this case.

    Secondly, I see you are using version 3.6.1 of the plugin. Are you using 3.6.1 for both The Events Calendar and The Events Calendar PRO? Make sure they are both running the same version number.

    Lastly, if the issue still pops up, are you able to update to the latest version of the plugins? We’re currently on version 3.9.1 and it’s possible that any issue you’re having has been resolved in the latest version.

    Let’s start with those three steps and see what we find. 🙂

    Cheers!
    Geoff

    #940244
    Barry
    Member

    Hi Parth,

    A great starting point if you wish to make customizations like adding your own styles is our Themer’s Guide and I would definitely recommend reading through it if you want to get a better sense of how things piece together 🙂

    I have selected ‘Tribe Events Styles’ from the style options and I want to overwrite tribe-events-full.css from the resources folder to my theme folder.I have put it on the ‘tribe-events’ folder with same name.But it’s not working.

    Overwriting it in this way isn’t possible, I’m afraid.

    What you can do however is place a stylesheet named tribe-events.css in a tribe-events directory within your theme. If you really need to remove the original stylesheet you can do so by using WordPress’s wp_dequeue_style() function- but you may find it easier simply to override the specific styles you’re interested in and/or lower the stylesheet setting in Events → Settings → Display.

    I hope that helps!

    #938614
    Josh
    Participant

    Hey!

    Thanks for following up with us!

    Unfortunately I’m not sure there is a simple way to modify this filtering. However, to ensure that your changes don’t get overwritten, you could:

    1. copy your modified js file into your theme
    2. dequeue the plugin version of that file from loading
    3. enqueue the new file from within your theme.

    This isn’t the most ideal solution but it would allow you to make the changes while also keeping the functionality on upgrade.

    Let me know if this helps.

    Thanks!

    #938044
    Brian
    Member

    To find out the Scripts and StyleSheets and their handlers on a page. I would recommend using the Query Monitor Plugin.

    It can provide you a complete list in the WordPress toolbar for that page so you can see exactly what you are looking for.

    It is what I use all the time.

    To dequeue on a single events only you can use the singular conditional:

    is_singular( ‘tribe_events’ )

    You can read more about conditionals here:

    http://codex.wordpress.org/Conditional_Tags

Viewing 15 results - 181 through 195 (of 274 total)