It looks like you are using the script “src” rather than the script “handle”. Have you tried:
add_action( 'wp_enqueue_scripts', 'remove_plugin_scripts', PHP_INT_MAX );
function remove_plugin_scripts() {
if ( wp_is_mobile() ) {
// Remove script file.
wp_dequeue_script( 'tp-tools' );
wp_deregister_script( 'tp-tools' );
wp_dequeue_script( 'revmin' );
wp_deregister_script( 'revmin' );
}
}
Related Posts:
- Enqueuing External Javascript functions.php
- How to enqueue JavaScript for specific WordPress pages only?
- Enqueuing Script in functions.php vs on the page
- Why won’t my scripts load?
- how to en-queue jQuery to load before the tag
- Run a jquery script on on a certain template page
- Theme JS is available but theme CSS isn’t
- How to load jQuery in TOP of wp_footer?
- Include Jquery libraries in wordpress theme?
- wp_enqueue_script() not working
- Changing the default view of “The Events Calendar” for mobile
- custom post with loading script per single post
- java script error Uncaught SyntaxError: Unexpected token ILLEGAL
- dynamically import array from another js file in WordPress
- How to load scripts/styles specific for a page
- WordPress Enqueue for homepage only, functions.php, wp-framework
- When tax_query used, results disappear (0 =1 produced)
- Where and how to put inline js in pages
- deregister scripts on certain page
- Enqueue Script with data attributes
- How to include one class/instance without using global variables
- Dequeue Scripts and Style for Mobile not working?
- Run Product Filter Javascript On Page Template
- jquery won’t load in footer
- How to properly add NPM packages and integrate them in WordPress?
- wp_enqueue_script add integrity parameter
- Passing arguments to my function with do_action and add_action is not working
- When using wp_enqueue_script(); in a theme why don’t we use add_action?
- Load JS Script only for custom post types
- Get Current User info using wp_localize_script, in functions.php
- How to get the post_name when in preview?
- Replace menu links with # and add name to its li
- Register vendor JS/CSS only on pages that require them?
- Not sure if enqueuing js scripts properly
- Wp_query function to search from product_title ‘OR’ product tags name
- call of javascript function to external url always blocked by cors
- Including a specific Javascript Script in a template. Is my code correct?
- Overwriting the menu break points of twentysixteen in child theme
- How do I remove the date and category form my portfolio pages
- I can’t enqueue my scripts – They literally aren’t being added to my site
- jQuery does not work
- I have problems with loading javascripts
- add_action wp_enqueue_script priority level only works for admins
- Scripts not loading when using the wp_enqueue_scripts action
- Disable wp_is_mobile()
- Dequeue script to prevent javascript event conflict on wordpress child theme
- Why does get_template_directory_uri() not include “www”, only for enqueued stylesheets?
- In jquery use php variable to execute an enqueued jquery file
- javascript and css links not working on sever
- Enqueue script on every page except one
- How is $current_page passed in woocommerce_account_orders function?
- Load JS file only in specific template
- Javascript not loading after the document ready
- 404 when enqueue_script using plugin_url
- Auto scroll to id on page load on all pages except home page. Only do this on mobile
- video.js not enqueueing?
- Why a SlideShow (made using JQuery FlexSlider) can’t work if I load it form functions.php but work if I load it from my footer.php file? [closed]
- Creating multiple category drop down
- How to setup a popup registeration page in wordpress with function.php
- Fatal error: allowed memory size when after using enqueue_script
- How to apply the ‘current_page_item’ class to an archive page in `wp_list_pages()`?
- Filter for replacing the WP_query object for a given category
- Add custom taxonomy using JS in post editor
- How to use wp_enqueue_script properly?
- Get webpack to work on child theme
- Create a CUstom Archive by Year, but just for a Single Category
- wp_set_object_term via js btn frontend
- Advanced method to control cache of enqueued style/script
- How to load a css file depending on the current role
- Add custom css file after plugin css with WordPress Child Theme functions.php
- query_vars treat as single var from URL
- Running javascript without hooking wp_head
- Test CDN link from function.php or wp_enqueue_script/style?
- How to display different blocks for mobile and desktops
- Unable to declare AOS library in functions
- Help wiht adding fullcalendar.io to a WordPress page
- WP Enqueue Script Error
- How do I dequeue a Stylesheet, stored in an ‘Assets’ folder?
- Get child-pages slugs of current page into js-file
- Why is style.css not loading through the functions.php
- Some code is added automatically to my site’s header – what is it?
- Javascript and Stylesheet in child page
- Automatic add space if user enters number(any digit)
- WordPress Jquery+scripts enqueue issue
- Search and Replace Script Loader in Head Only Works in Footer
- Why are some custom javascript files working but some are not
- WordPress Javascript Widget jQuery Dependency Issue
- Optimizing multiple WP_querys into one call?
- using enqueue_script in a shortcode isn’t working
- Using array page name together with page id to deregister script
- Query is not work
- wp_enqueue_scripts called twice?
- How do I get my nav menu to show sub pages?
- Why wp_ajax hooks doesn’t work?
- Remove snippets of JS from core
- Insert image between X number of posts but on specific paginated pages?
- Animated Accordion [closed]
- Can’t find function which is called in a wordpress theme
- WordPress – Notice: Function wp_enqueue_script was called incorrectly
- Loading newest dependency javascript module file in functions.php