Search Results for 'dequeue'

Home Forums Search Search Results for 'dequeue'

Viewing 15 results - 76 through 90 (of 274 total)
  • Author
    Search Results
  • Shelby
    Participant

    Hi again,

    Apologies for the delay here. I was out last week and this one slipped through the cracks with the team helping to cover my existing threads.

    I think you might find this free extension helpful for dequeueing files. 🙂

    Best of luck with your project!

    Shelby 🙂

    Barry
    Member

    Hi Mike,

    I’m sorry that you’ve been disappointed by your interactions with the team and our products.

    We work hard to provide the best support experience we can and we aim to couple that with clean, extensible code. We’re not perfect of course: mistakes can happen and I’d agree there are parts of our plugins that are not quite as customizable as may be ideal or where other improvements ought to be made.

    With that said, I strongly disagree with your assertion that our support is “comically bad” and I’m unsure quite how we can be said to be “passing the buck”: we’re upfront in both our terms and conditions and in numerous open interactions with you and other users in the forums that there is a reasonable limit to the degree of assistance we can provide when it comes to custom development tasks.

    If I can take a moment to address a couple of specific items you’ve raised:

    So basically you advertise that you can import .ics files from Google Calender, charge me extra for that option, and don’t actually support importing all the fields.

    The field containing the event location is imported, but it’s a facet of the iCal standard that the data is delivered as a single piece of text, rather than logical components such as street, city and country fields etc.

    Certainly it would be possible to make some best guesses and break it apart, but doing this in a way that makes sense for and works well with the vast range of possible permutations that our customers use is not without its challenges.

    In the process, we discover you don’t offer a method to override the javascript which is used to generate the map styling and info windows.

    As Victor noted in a previous exchange, you can dequeue and replace any Javascript such as this. That arguably is not the perfect method – depending on the extent of the adjustments you needed to make – but I struggle to imagine a scenario where you or your developer would have no option but to hack core plugin code.

    If I’m wrong and there are solid reasons as to why your dev needed to do that then of course we want to hear more: if you can share your developer’s feedback, that would be awesome.

    Give customers actual solutions to problems, even if it means writing the damn code for their functions.php file.

    We provide customers with working solutions every day. We also say “no” every day, multiple times, because that too can be the correct course of action to deliver fair support to all our users.

    Again, I’m sorry you’ve been left with a feeling of disappointment and I’ll certainly connect with you by email on Monday so we can continue this dialog.

    #1301673
    Barry
    Member

    Apologies for the delay, Joanna. The following code ought to be a good starting point, but please do heed the advice in the comments as removing a script like this (which other scripts depend upon) can potentially cause breakages:

    /**
     * Stops The Events Calendar from enqueuing jquery.ba-resize.js.
     * 
     * Note that this will break various script dependencies, so it should
     * be used with care and appropriate checks added to prevent it from 
     * being used on pages that truly require it.
     */
    function dequeue_tribe_jquery_resize() {
    	wp_deregister_script( 'tribe-events-jquery-resize' );
    	wp_dequeue_script( 'tribe-events-jquery-resize' );
    }
    
    add_action( 'wp_enqueue_scripts', 'dequeue_tribe_jquery_resize', 100 );
    #1299323
    Shelby
    Participant

    Hi Joanna,

    We’ve looked over your snippet, and have revised it below. You should insert the following in your functions.php file. Please let me know how this goes! 🙂

    <?php
    
    /**
     * An example for how to dequeue a script
     *
     * Obtain the handle of your script by searching through the code, and then 
     * add a wp_deregister_script() function call for that handle.
     */
    function tribe_dequeue_script_example() {
     wp_deregister_script( 'tribe-events-jquery-resize' );
    }
    add_action( 'wp_enqueue_scripts', 'tribe_dequeue_script_example', PHP_INT_MAX );
    add_action( 'admin_enqueue_scripts', 'tribe_dequeue_script_example', PHP_INT_MAX );
    #1298910
    JOANNA S
    Participant

    Hi Shelby,

    I’ve attempted dequeuing using the suggested hook, but the file is still present.

    Can you please confirm if this hook is still valid?

    function tribe_dequeue_script() {
       wp_dequeue_script( 'tribe-events-jquery-resize' );
    }
    add_action( 'wp_print_scripts', 'tribe_dequeue_script', 100 );
    Shelby
    Participant

    Hi there,

    As a rule, we don’t log into customer sites, except in extremely strenuous cases, so I’ve erased your credentials from your last private reply.

    I think your best bet here is going to be dequeuing that file using either this extension or the methods that Kyle suggests here in this thread. 🙂

    Unfortunately, beyond this assistance, we can’t support theme conflicts too deeply on this forum, as it would be logistically impossible for us to test and ensure our plugins are compatible with every configuration of themes and plugins within the WordPress ecosystem. So on this forum we can only focus on issues present with the default WordPress themes, and our plugins.

    Either way, let me know how the dequeuing goes.

    Best,

    Shelby 🙂

    #1298699
    Shelby
    Participant

    Hey Joanna,

    Thanks for clarifying. 🙂

    I’ve done some additional digging into this topic, and I found a very similar thread between user Marty, and support team member Brook, that I think will give you the answers you need, as that specific file is mentioned with a similar request, and Marty reported that he was able to implement the solution. You can view that thread with this link.

    Please let me know if this helps and if you have any follow up questions to this issue!

    Best,

    Shelby 🙂

    #1298264
    JOANNA S
    Participant

    Thanks Shelby.

    Unfortunately, this does not target the file causing the conflict. Could you please provide the dequeue hook for jquery.ba-resize.js and I will add this to functions.php directly.

    #1298232
    Shelby
    Participant

    Hi there Joanna,

    Great question, and I’m happy to help! 🙂

    I think you’ll find that this free extension will help out with dequeuing files as you need. 🙂

    Please let me know if you have any follow up questions to this or need any clarification on this!

    Best,

    Shelby 🙂

    #1293910
    Barry
    Member

    Excellent, thanks! I can now replicate 🙂

    Unfortunately, there is a conflict between your theme’s CSS (specifically, I believe, from “Swift Framework” which is a part of Dante) and our own plugin. I have a fairly simple solution, however. Please create a new file (you may also need to create the mu-plugins directory if it doesn’t already exist) here:

    wp-content/mu-plugins/swift-tec-compatibility.php

    Add the following code to that file:

    <?php
    function remove_swift_css_from_event_editor() {
    	wp_dequeue_style( 'page-builder-css' );
    }
    
    add_action( 'admin_head', 'remove_swift_css_from_event_editor', 5 );

    If that doesn’t work however I’d encourage you to work further with the theme author: ideally, they would not add their CSS to admin screens other than those they are responsible for (there’s no real need for them to add Javascript and CSS to the event editor screen, as an example – in fact it causes the problem you have been experiencing).

    That said, hopefully the above solution works for you 🙂

    Good luck!

    #1293446
    Shelby
    Participant

    Hi Carlos,

    Thanks for reaching out, I’m happy to help! 🙂

    I think you may find this free extension helpful to dequeue certain styles and javascript files. 🙂

    Please let me know if you have any follow up questions or need clarification on any of this.

    Best,

    Shelby 🙂

    Victor
    Member

    Hi Jonah!

    Thanks for coming back to us! 🙂

    Unfortunately, there is no built in way to make an override of the javascript files.

    If you want to customize those files without being affected by plugin updates, then you could dequeue the script and then enqueuing your own.

    I hope that helps! Let me know if any other questions.

    Best,
    Victor

    #1284684
    Trisha
    Member

    Hi, Saif!

    I made some good progress today! I dequeued several scripts and re-enqueued them properly. I’m still hunting down a few…I’ll keep you posted!

    Cheers,
    Trisha

    Trisha
    Member

    Saif,

    When I look at Okgamers.com everything seems to be ok, were you able to fix it?

    We had a customer recently who had some success with WP Rocket. Initially, he was having some of the same issues you were but after we chatted he went back in changed the configuration and said he was able to make it work…that’s one option.

    Another option is this extension: https://theeventscalendar.com/extensions/dequeue-assets/. It will let you dequeue the js files and then you can enqueue them in the footer.

    You mentioned having a staging site set up at one time, do you still have that available?

    I’m going to set up a local instance and see if I can work through some of this with you so bear with me as I get that started. I’m sure there are others interested in how to do this!

    Also, check out alchemistmedia.com, it had a page speed score of 98 or 99 last time I checked. We had it at 100 at one point but had to compromise for google analytics. I’ll see if I can remember what plugins I used on that one. Granted it’s not using The Events Calendar but we’ll get there!

    Hang in there!

    Cheers,
    Trisha

    #1273390
    Andras
    Keymaster

    Hello Justin,

    Thanks for going Pro and welcome to the forums!

    I don’t quite see the errors in my console when visiting the page. However, you can find some tips in the below thread on how you can dequeue scripts of our plugins:

    wp_dequeue_style() and wp_dequeue_script().

    Does this help you get started? Let me know.

    Cheers,
    Andras

Viewing 15 results - 76 through 90 (of 274 total)