enqueue stylesheet properly

This commit is contained in:
Aadil Ayub 2024-01-12 13:03:34 +05:00
parent 292b43815d
commit 2ef8c257ed

View File

@ -4,5 +4,7 @@ add_action('init', 'custom_stylesheet');
function custom_stylesheet() { function custom_stylesheet() {
wp_register_style( 'custom-styles', get_template_directory_uri() . '/style.css' ); wp_register_style( 'custom-styles', get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'custom-styles' );
} }
wp_enqueue_style( 'custom-styles' );
add_action( 'wp_enqueue_scripts', 'custom_stylesheet' );