Wordpress - Theme Structure and Basics
Which of the following is the correct way to enqueue a CSS file named
style.css located in your theme folder?style.css located in your theme folder?wp_enqueue_style. The URL should be built with get_template_directory_uri() plus the file path.wp_enqueue_script which is for JS, not CSS. wp_add_style('my-style', get_template_directory_uri() . '/style.css'); uses a non-existent function wp_add_style.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions