Search Results for 'dequeue'

Home Forums Search Search Results for 'dequeue'

Viewing 15 results - 31 through 45 (of 274 total)
  • Author
    Search Results
  • Hi Cory,

    You can try to dequeue some of our scripts using the following extension:

    https://theeventscalendar.com/extensions/dequeue-assets/

    Let me know if that helps!

     

    Thanks,

    Jaime

    #1473263
    gardeningknowhow
    Participant

    Ok, I have to ammend my statements. I am looking at the minified version right now and the function is included:

    ;window.debug=function(){function e(e){!r||!a&&s&&s.log||r.apply(i,e)}function t(e){return d>0?d>e:l.length+d<=e}for(var r,a,i=this,n=Array.prototype.slice,s=i.console,o={},d=9,l=["error","warn","info","debug","log"],u="assert clear count dir dirxml exception group groupCollapsed groupEnd profile profileEnd table time timeEnd trace".split(" ")…

    But for some reason, it is not being recognized on my site. We are using ads and it is possible that they are also using the window.debug function but in an altered way. I am not sure. When I add the function, unminified, to the footer, it works well for the events calendar but it causes the ads to some weird printing out of what looks to be debug info. So, it is likely that they are also using the same function from the same open source as you, but they have modified it and redefined the debug object. This still falls on you as plugin developers. You have a WordPress Plugin. It will be expected to work well with countless other plugins and code for countless other sources. Because of this, you should not be using the generic open source object variable of "debug"…. It should be called tribedebug or something. It's a VERY simple fix to sort of namespace the variable so that you do not run into conflict with very likely possibility that someone else is using the same popular open source script.

    So, for me right now, I am left with only a few options. 1) to change your code directly and keep a copy so that I can replace the files everytime you submit an update. 2) try to get the ad companies to namespace the debug object they are using from the same source (which is never going to happen). 3) sit and wait for you guys to do something about this and namespace YOUR debug object (I do not know how motivated you guys are to doing this). 4) create a bunch of javascript hacks that not only redefine the debug object to it's original condition, but to look for the output from the ad companies in the DOM and remove them. 5) edit all of your javascript files and remove the debugging or namespace the debug object myself, and then try to dequeue the plugin scripts and call them myself, referencing the working, edited files in an attempt to avoid having to make changes everytime you put out an update.

    #1467438

    Hi Louise,

    Thanks so much for reaching out!

    Here is our extension that allows for dequeueing CSS styles and Javascript Files:

    https://theeventscalendar.com/extensions/dequeue-assets/

    Let me know if that helps!

     

    Thanks,

    Jaime

    #1455623

    Hi Andrew,

    Thanks so much for reaching out!

    You can try the following extension to help you dequeue some of your scripts:

    https://theeventscalendar.com/extensions/dequeue-assets/

    Let me know how that goes!

     

    Thanks,

    Jaime

    Hi Javier,

    In that case, 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.

    I hope this helps to point you in the right direction!

     

    Thanks,

    Jaime

    #1434212
    Cliff
    Member

    Really the solution is to update our Isotope version so we can use https://isotope.metafizzy.co/layout-modes/fitrows.html

    Another alternative is to use Flexbox.

    Either way, there’s no CSS I know of that can override the Isotope we use at this moment. You could dequeue ours and add your own but that’s outside per our Scope of Support / Terms.

    Again, we’ve got it logged internally to eventually fix, but I don’t have a better solution for you at this time.

    #1423055

    Thanks for your feedback, Christopher!

    One suggestion is for you both to try the following extension to dequeue CSS Styles and Javascript Files:

    https://theeventscalendar.com/extensions/dequeue-assets/

    Sami, let me know how it goes!

    Christopher, if you are still experiencing the same issue, please open up a new thread so that we can provide you with more personalized attention!

     

    Thanks,

    Jaime

    #1422920

    I’m having the same issue and I noticed that when the plugin is activated, for some reason common-css is being loading which overrides the .wrap class, which is pretty nuts considering there are a ton of different sites that probably use that class.

    Once that style sheet is dequeued, your styles should go back to normal. Unfortunately, I have no idea how to dequeue it from the plugin…

    #1403833
    Geoff B.
    Member

    Good morning Jasmin,

    Thank you for the files and the system information.

    PHP 5 is still OK, although PHP 7+ is definitely highly recommended.

    With that in mind, it looks like your current PHP max execution time is set to zero.
    I would highly recommend fixing that. You can ask your web host for help.

    I am also getting the following message as I activate your theme

    Your theme (Everline) contains outdated copies of some WooCommerce template files. These files may need updating to ensure they are compatible with the current version of WooCommerce. You can see which files are affected from the system status page.

    You might want to look into that as well.

    As for the theme itself, I installed it on my end.
    It works for the initial “previous” or “next” attempt.

    However, after that, it breaks with a Javascript / jQuery error (in the Google Chrome Developer console).

    So it looks like the issue is that there is a conflicting version of a script in the theme itself (probably an older version).
    Since it looks like the theme is about 2 years old, I am pretty sure that this is the cause of the issue.

    The next step would be to hunt down the conflicting script.
    The best person to help with that would be the theme author.

    In fact, since they are offering compatibility with the Events Calendar I am pretty sure they will be very interested in helping out. The first step would be to dequeue all scripts and reactivate them one-by-one until it breaks.

    Let me know how that goes.

    Best regards,
    Geoff B.

    #1401569

    In reply to: Maps JS errors

    Brendan
    Keymaster

    Hi Greg,

    This function should work to dequeue the Google Maps API. There could be a conflict with another plugin or in your theme. While we wait for this to be resolved, you can try and test this function following our testing for conflicts guidelines.

    Let me know how that goes.

    Thanks,
    Brendan

    #1400731

    In reply to: Maps JS errors

    Brendan
    Keymaster

    Hi Greg,

    Try adding a higher priority to the action. I have modified the above script to include a higher priority.

    function remove_events_map_apis() {
    wp_dequeue_script( 'tribe_events_google_maps_api' );
    wp_dequeue_script( 'tribe_events_embedded_map' );
    wp_dequeue_script( 'tribe-gmaps' );
    wp_dequeue_script( 'tribe-events-pro-geoloc' );
    }
    add_action( 'wp_print_scripts', 'remove_events_map_apis', 100 );

    Let me know if that works. Also, I am submitting a bug ticket for this since this error shouldn’t be happening in the first place.

    Thanks,
    Brendan

    #1396303

    In reply to: Maps JS errors

    Brendan
    Keymaster

    Hi there,

    Sorry you are having issues with Google maps.

    If you would like to remove it completely, you can add the following to your functions.php file in your theme.

    function remove_events_map_apis() {
        wp_dequeue_script( 'tribe_events_google_maps_api' );
        wp_dequeue_script( 'tribe_events_embedded_map' );
        wp_dequeue_script( 'tribe-gmaps' );
        wp_dequeue_script( 'tribe-events-pro-geoloc' );
    }
    add_action( 'wp_print_scripts', 'remove_events_map_apis' );
    

    Let me know if this works for you.

    Thanks,
    Brendan

    #1394692
    Patricia
    Member

    Hi Adam,

    There’s no need to change the .css files as your customization is only modifying one line of tribe-events.js. The basic steps you have to follow are:

    1- Dequeue tribe-events.min.js (this step is complete);
    2- Copy the content from tribe-events.js to another file in your custom plugin or in your theme, make the necessary changes, save and create the minified version of your custom code;
    3- Register and enqueue your new script by using wp_register_script and wp_enqueue_script.

    Please note that the tribe-script.js you dequeued has some dependencies, so I would recommend you to take a look at the-events-calendar/src/Tribe/Asset/Calendar_Script.php to see how it’s enqueued so you can follow the same general guidelines.

    If you think that this customization is more complex than expected, I would recommend you to hire a developer to help you with the code!

    Cheers,

    Patricia

    #1393617

    Hi Julián,

    Thank you for running through those tests.  Unfortunately this seems to be related to a known issue that we are having.

    We apologize for the inconvenience caused by this glitch and we are actively working on a solution for this.  I cannot guarantee when it will be fixed, as it’s in the development team’s hands now.  They need to assign it, code it, test it, and schedule it for release.  The good news is that you will be contacted as soon as a fix is available.

    In the meantime, you can try to dequeue the script that is causing the issue by adding this to your theme’s functions.php file:


    if ( is_admin() ) {
    wp_deregister_script( 'tribe-select2' );
    }

    Thank you for your patience as we see this through.  Please let me know if you have any other questions in the meantime!

     

    Thanks,

    Jaime

    #1393038
    Adam
    Participant

    the dequeue worked!

    Thanks again Patricia!

    Of course now I’m having issues getting the edited files in. I am trying to follow the part about Javascript Templates in the Themer’s Guide. It says to follow the Customizing Styles section.

    So I changed the code recommended for .css file, which is:

    function replace_tribe_events_calendar_stylesheet() {
       $styleUrl = get_bloginfo('template_url') . '/custom-events-stylesheet.css';
       return $styleUrl;
    }
    add_filter('tribe_events_stylesheet_url', 'replace_tribe_events_calendar_stylesheet');

    to:

    function replace_tribe_events_calendar_tribe_events_js() {
       $jsUrl = get_bloginfo('template_url') . '/tribe-events.js';
       return $jsUrl;
    }
    add_filter('tribe_events_stylesheet_url', 'replace_tribe_events_calendar_tribe_events_js');

    But I think I need a different filter than tribe_events_stylesheet_url.

    I put this code in functions.php in my child theme along with the .js files.

    I also haven’t had any luck finding more resources here, can you point me in the right direction?

Viewing 15 results - 31 through 45 (of 274 total)