You will need to dequeue it after it has been enqueued.
function wpse387889_dequeue_scripts() {
wp_dequeue_script('jquery-tinycolor');
wp_deregister_script('jquery-tinycolor');
wp_dequeue_script('splittext');
wp_deregister_script('splittext');
}
add_action( 'wp_enqueue_scripts', 'wpse387889_dequeue_scripts', 99 );
Related Posts:
- Dequeue Scripts and Style for Mobile not working?
- Dequeue script in template isn’t working
- When using wp_enqueue_script(); in a theme why don’t we use add_action?
- enqueue styles for only mobile wp
- Why I can’t load my JavaScripts using an hook inside my functions.php file?
- Advanced method to control cache of enqueued style/script
- Test CDN link from function.php or wp_enqueue_script/style?
- How to load scripts/styles specific for a page
- WordPress Enqueue for homepage only, functions.php, wp-framework
- Is it ok to use a function to output the text domain name in a wordpress theme
- TinyMCE custom styles remove class when switching styles
- deregister scripts on certain page
- Enqueue Script with data attributes
- Show/hide Widgets in Dashboard Based on Current Advanced Custom Fields Option
- Overriding core functions in child theme
- Displaying Widgets
- Enqueuing Script in functions.php vs on the page
- Best Practice for Syncing Local Development With Staging Development [closed]
- Overwrite Parent Theme add_image_size in Child Theme
- How to add css class to image attached in all the posts?
- If is multiple page templates
- wp_enqueue_script add integrity parameter
- Passing arguments to my function with do_action and add_action is not working
- Load JS Script only for custom post types
- How to use Internationalized human_time_diff() function in Chinese?
- is_dynamic_sidebar always returns true while using Jetpack visibility
- Register vendor JS/CSS only on pages that require them?
- Add caption functionality to custom WordPress theme
- Override a theme function in a child theme?
- Pulling Twitter RSS feed not working as expected (fatal error)
- Not sure if enqueuing js scripts properly
- Register and load scripts
- Use register_setting() in a loop
- Best practices regarding the creation of custom widgets?
- Add dynamic links in WordPress custom theme
- WordPress menu link doesn’t work properly
- Search filter by Post title OR Meta Title Value [duplicate]
- admin-ajax.php + load-scripts.php hanging for minutes
- how to en-queue jQuery to load before the tag
- Unique sequential reservation code
- Attempt to change jQuery version caused White Screen of Death
- Functions.php Problem
- jQuery does not work
- How to customize the_archive_title()? Cannot figure out how to change the value it produces [duplicate]
- Control the srcset much more (not all sizes in it each time)
- Way to store featured image width and height in two separate variables?
- add_action wp_enqueue_script priority level only works for admins
- Scripts not loading when using the wp_enqueue_scripts action
- Excerpt for pages not showing
- Some questions about how proper add 2 CSS file in a WordPress 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
- Enqueue script on every page except one
- Run a jquery script on on a certain template page
- Functions php shortcode for displaying main menu with no child items
- PHP 7.1 | Warning: A non-numeric value encountered in
- Load JS file only in specific template
- I can’t add CSS with functions.php
- 404 when enqueue_script using plugin_url
- WP Customizer API loaded into functions.php
- call_user_func_array() expects parameter 1 to be a valid callback, function
- why can’t i add front.css to my frontpage.php
- How to load jQuery in TOP of wp_footer?
- Is this an acceptable practice for WordPress theme development?
- video.js not enqueueing?
- Rewrite Question Mark in Post Template with URL Parameter for clean URLs
- contact form in template with jquery,validate and ajax
- 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]
- Fatal error: allowed memory size when after using enqueue_script
- wp_enqueue_script() not working
- Woocommerce Variable Product Dropdown for Custom Shop Template
- How to use wp_enqueue_script properly?
- Get webpack to work on child theme
- How to load a css file depending on the current role
- localize_script but data changes dependent on product ID
- Add custom css file after plugin css with WordPress Child Theme functions.php
- Is_Page doesnt detect my page
- How to customize archive widget only for cpt?
- Unable to declare AOS library in functions
- Add meta data in head from theme
- what is `get_section()` and how to use it?
- WP Enqueue Script Error
- How do I dequeue a Stylesheet, stored in an ‘Assets’ folder?
- Remove External Links from WordPress posts Using add_filter() in Theme functions.php
- True parameter but jquery register in header and not in the footer with wp_register_script
- Why is style.css not loading through the functions.php
- WordPress Jquery+scripts enqueue issue
- custom post with loading script per single post
- wp_nav_walker that interacts with widgets to setup mega menu
- Allow tags and attributes in post and pages content
- using enqueue_script in a shortcode isn’t working
- Using array page name together with page id to deregister script
- wp_enqueue_scripts called twice?
- Remove snippets of JS from core
- Why functions metaboxes is causing White Screen in Admin [closed]
- Getting error on function.php
- WordPress – Notice: Function wp_enqueue_script was called incorrectly
- dynamically import array from another js file in WordPress
- Loading newest dependency javascript module file in functions.php
- Setcookie not setting cookies anywhere except admin