Compare commits

...
2 Commits
Author SHA1 Message Date
aadil 2ef8c257ed enqueue stylesheet properly 2024-01-12 13:03:34 +05:00
aadil 292b43815d fix typo in wp-env file 2024-01-12 13:03:14 +05:00
2 changed files with 5 additions and 3 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
{
"core": null,
"theme": [ "." ]
}
"themes": [ "." ]
}
+3 -1
View File
@@ -4,5 +4,7 @@ add_action('init', 'custom_stylesheet');
function custom_stylesheet() {
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' );