I need to ‘wp_dequeue_script’ and ‘styles’ and ADD a bunch of other css and js

Using wp_enqueue_scripts You should use a proper hook to enqueue/dequeue your scripts, to ensure that it works flawlessly. A proper plugin/theme uses wp_enqueue_scripts to do this, so you should do the same. Wrap your code inside a function, and bind it to this action hook. Also, remember to set the priority to something that makes … Read more

How do I dequeue a Stylesheet, stored in an ‘Assets’ folder?

Two things you need to: Hook into wp_enqueue_scripts with a priority later than the parent theme’s. The default is 10 so that’s a good assumption. If 11 doesn’t work, check the parent theme’s source to see which priority it’s hooked at. Use wp_dequeue_style() to do the dequeueing. That will look like: function wpse_293836_dequeue_parent_styles(){ wp_dequeue_style( ‘theme-skin-color’ … Read more

Edit CSS of a plugin

If you want to dequeue an enqueued style you need to use the wp_dequeue_style() function with the handle of the style you want to remove. The handle is the first argument of wp_register_style() and wp_enqueue_style(). In your case that’s stripe_styles. So if you want to deregister and dequeue it: wp_dequeue_style( ‘stripe_styles’ ); wp_deregister_style( ‘stripe_styles’ ); … Read more