How do I dequeue a parent theme’s CSS file?
My parent theme (Starkers) adds a CSS file that I’m trying to remove (I want to use @import instead so I can override styles more easily). Starkers has the following in its functions.php:
My parent theme (Starkers) adds a CSS file that I’m trying to remove (I want to use @import instead so I can override styles more easily). Starkers has the following in its functions.php:
I’m creating a plugin and I want to get the list of all scripts and CSS used by other plugins.
I have two simple functions that load stuff using wp_enqueue_style() and wp_enqueue_script(), something like these:
I get this error due to one of the plugins which I rely on.
Currently I’m working on a theme, and did some styles and scripts enqueue. When enqueued the scripts, I used wp_register_script() first, and then enqueued with wp_enqueue_script() – because I got that’s the proper way of enqueuing the scripts. But in enqueuing the styles, I used only the wp_enqueue_style() with all its parameters. But just now … Read more
I try to style the login page in my theme. Very simple:
I am upgrading Font Awesome 4 to version 5 which introduces both integrity and crossorigin attributes to the <link rel="stylesheet"> markup.
How do I enqueue a .css file before style.css is loaded? Or make the default style.css dependant on another .css file?
Assuming I have no infinite scroll or anything else going on in my theme:
Is there a way to enqueue my custom Gutenberg block styles and scripts so they are only (lazy) loaded in the front-end when the block is really used? Something like is_active_widget, just for blocks?
How can I get all enqueued styles or scripts and then deregister them all at once?