• Resolved debinz

    (@debinz)


    Hi, I’ve made a page where I need to dequeue the Essential Addons script and pull in my own. I can’t find the handle name to dequeue it in my functions.php. Can you please help?

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter debinz

    (@debinz)

    Just a note – I’m sure the handle used to be ‘eael-front-end’ but it seems to have changed and I can’t figure out what it is to dequeue it.

    Plugin Support Abid Hasan

    (@abidhasan112)

    Hi @debinz ,

    In the present version of Essential Addons for Elementor, Styles and Scripts handle name managed in more modern way. Now this is generates dynamically.

    If you don’t use any widget/elements in your page, Scripts and Styles will not be exists in that page I believe.

    In your page, I see in the Advisory Board members section is managed with EA Advanced Tabs widget so the CSS and JS is loaded in this page.

    Anyway, If you still want to dequeue the script for this page, Then use this handle name: c346d8c87

    And easy way to find this handle name from here(page source): https://d.pr/i/hfSwxf

    Hope you understand! Cheers!

    Thread Starter debinz

    (@debinz)

    Hi, thank you for your response but that handle doesn’t work to dequeue it. I am using a function to dequeue the file and enqueue mine. Mine is enqueueing but I can’t get the official one dequeued.

    wp_dequeue_script(‘c346d8c87’);

    I’ve also tried wp_scripts()->dequeue( ‘c346d8c87’ );

    This doesn’t work unfortunately.

    Thread Starter debinz

    (@debinz)

    I’ve also used this to find the handle and Essential Addons isn’t in there.

    var_dump( $GLOBALS[‘wp_scripts’]->registered );

    Plugin Support Abid Hasan

    (@abidhasan112)

    Hi @debinz ,

    As this script called on footer, So you need to use wp_footer hook for this.

    Add this on your functions.php :

    function dequeue_essential_addons_script() { 
      wp_dequeue_script( 'c346d8c87' ); 
    }
    add_action( 'wp_footer', 'dequeue_essential_addons_script', 11 );

    Let me know how it goes!

    Thread Starter debinz

    (@debinz)

    Thanks it’s working now! I had it in the wp_enqueue_scripts hook. What I’ve got it to do is have a “read less” option to click and it deactivates the tab.

    Plugin Support Abid Hasan

    (@abidhasan112)

    Awesome @debinz !
    Glad to know that it works!

    And yes, I understand your purpose ??

    Cheers!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Script Handle Name’ is closed to new replies.