enqueue style.css

This commit is contained in:
Aadil Ayub 2024-04-25 16:32:31 +05:00
parent d5da9033d4
commit e4e9676864

View File

@ -1,2 +1,10 @@
<?php
function cmt_styles() {
wp_register_style( 'custom-styles', get_template_directory_uri() . '/style.css' );
add_theme_support( 'editor-styles' );
add_editor_style( 'style.css' );
}
add_action( 'after_setup_theme', 'cmt_block_styles' );
wp_enqueue_style( 'custom-styles' );