Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for WordPress Development Stack Exchange. Closed 3...
Following Keith Clarks advice, i’d like to load my fonts asynchronously. I try to achieve that by adding: wp_enqueue_style( 'font-awesome', URI . '/fonts/font-awesome/css/font-awesome.min.css' ); wp_style_add_data( 'font-awesome', 'onload', 'if(media!=\'all\')media=\'all\''); to...
I’ve created a child theme and the main style.css works perfectly fine. However, the parent theme has another stylesheet which I want to import and create the same for...
Is it possible to some how make my plugin dequeue / deregister any styles and any scripts from what ever theme activated. so it doesn’t matter what theme will...
Is there some way to avoid the load of default WordPress styles in login screen to only load my custom stylesheets? Actually I’m using this code: function login_styles() {...
I’ve got a plugin that makes a widget that enqueues some front-end CSS to style the widdget. I call wp_enqueue_style from the public widget() method in the extended WP_Widget...
I’m not a WordPress developer, I’m trying to help a friend who has a WordPress website. Here is the problem: In the template, wp_head() function adds bunch of styles...
I am trying to add a CSS style to a WordPress theme that I am developing as is shown in this tutorial: http://www.wpbeginner.com/wp-tutorials/how-to-properly-add-javascripts-and-styles-in-wordpress/ but seems don’t work and I...
I was wondering if it’s possible to enqueue raw CSS as a string directly from within a template file? I’m writing a custom template for a page and need...
I’ve coded a plugin that creates a shortcode, among other things. That shortcode expects a post_id parameter, it extracts the content of that post and it returns the filtered...