I’ve noticed that in the source code of my website there is Font Awesome loaded five times. Loaded versions are 3.2.1, 4.0.1, 4.1.0 and more. Shortcodes plugins, page builders,...
I’m building a theme on top of purecss.io. In order to make the grid responsive I need to add this stylesheet. From functions.php function load_css() { wp_enqueue_style ( 'purecss-all-not-ie',...
Everywhere is said that you need to use wp_enqueue_scripts() instead of wp_print_styles(). wp_print_styles() is located in wp-includes/functions.wp-styles.php. So what does it mean? What should I change? Where? Why? Can...
I am currently using a Plugin, which has created a Stylesheet within the following directory: /wp-content/uploads/plugin-name/css. I would like to remove this Plugin’s Stylesheet, since it is being called...
I have seen script and style handles written in two different ways in wp_register_script and wp_enqueue_script (the same applies to wp_register_style and wp_enqueue_style): wp_register_script( 'jquery-someplugin', $location ); wp_register_script( 'jquery.someplugin',...
I want to add stylesheet wrapped in noscript tag for a custom theme. Does wp_enqueue_style has any support for it? Or should I just include it like we do...
How do I get the parent theme’s version in a child theme? I want to use it when loading the parent theme’s stylesheet. Here’s how I load the stylesheets...
I get this error due to one of the plugins which I rely on. Notice: wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until...
I’m using the Rosario font from the Google Web Fonts in my theme and I want to enqueue the font so that if there was ever a plugin that...
I am new to WordPress. I have started creating my own custom theme. When I am creating it, I have found that add_action('wp_enqueue_script', 'custom_script'); can be used to add...