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
- Get Current User info using wp_localize_script, in functions.php
- How to get the post_name when in preview?
- list tags with count in author profile page
- Enqueue scripts not working with if is page conditional tag in functions.php
- Replace menu links with # and add name to its li
- Register vendor JS/CSS only on pages that require them?
- Loading CDN that requires jQuery in WordPress
- How to hide unused profile fields?
- wp_register_script(… $in_footer = true) not working
- Not sure if enqueuing js scripts properly
- Only let plugin add actions to wp_head & wp_footer on single posts
- Register and load scripts
- Having a Function Inside of the Loop
- Wp_query function to search from product_title ‘OR’ product tags name
- Scripts not appending to element in AJAX call – why?
- call of javascript function to external url always blocked by cors
- Including a specific Javascript Script in a template. Is my code correct?
- How to search using ajax for exact phrase or words in an input field?
- enqueue styles for only mobile wp
- 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
- Attempt to change jQuery version caused White Screen of Death
- Display tags that only appear in one category
- Redirect to another page using contact form 7? [closed]
- jQuery does not work
- enqueue_script with filemtime javascript not working
- Javascript function not working when placed in Text Block
- 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()
- Adding javascript to functions.php causes problems with my template
- 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
- Custom Query Not Paginating
- javascript and css links not working on sever
- Enqueue script on every page except one
- Reset postdata not working on WP_Query in functions.php
- Wp-query Order By problem
- How is $current_page passed in woocommerce_account_orders function?
- wp_enqueue_script | Help me figure out what is causing jQuery is not defined
- Load JS file only in specific template
- Loading two different AJAX requests on two different pages
- Enable right click on WordPress site
- The correct way to add a JavaScript in the functions.php [closed]
- 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
- Need help with customalert that it would read on a normal page, but not in WordPress
- video.js not enqueueing?
- Problem enqueuing scripts on not single posts
- Call two different function.js depending on page
- Linking Javascript in functions.php file
- Dequeue scripts in IE7 only using functions.php
- 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]
- Why I can’t load my JavaScripts using an hook inside my functions.php file?
- Creating multiple category drop down
- Creating a custom wordpress widget and stopping js from running twice(once in active widget once in widget selector)?
- Enqueueing scripts selectively & activation where needed
- How to setup a popup registeration page in wordpress with function.php
- Why is this function crashing my wordpress installation? [closed]
- colorbox not loading in
- Fatal error: allowed memory size when after using enqueue_script
- Custom attributes to javascript tags
- 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
- How to change text color depending on the number value (Using javascript)
- 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
- Updating custom query var with multiple values
- 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
- localize_script but data changes dependent on product ID
- Display Script in Header When URL Variable Present
- WordPress wp_dequeue_script remove all other scripts
- Add custom css file after plugin css with WordPress Child Theme functions.php
- WP_Query for Attachments not working as expected
- query_vars treat as single var from URL
- Running javascript without hooking wp_head
- Is it possible to load recaptcha script only in url with fragment identifier (#)?
- wp enqueue style on about us page