New answers tagged

0 votes

Why is style.css not being enqueued?

Minor nitpick on Arun's answer above. Like they said, you should enqueue it in the functions.php file, but it is probably better to define and call it anonymously within the add_action function, ...
user avatar
  • 119
0 votes

wp enqueue style on specific page templates

Try this if(is_page_template(array( 'custom-template/about.php') )) { wp_enqueue_style('about-css', get_template_directory_uri() . '/assets/css/about.css', array(), time(), '...
user avatar

Top 50 recent answers are included