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...
  • May 5, 2022
  • 0 Comments
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...
  • May 5, 2022
  • 0 Comments
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...
  • May 3, 2022
  • 0 Comments
IT Nursery
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...
  • May 3, 2022
  • 0 Comments