22 lines
598 B
PHP
22 lines
598 B
PHP
<?php
|
|
|
|
function cmt_styles() {
|
|
wp_register_style( 'custom-styles', get_template_directory_uri() . '/style.css' );
|
|
wp_enqueue_style( 'custom-styles' );
|
|
}
|
|
add_action('wp_enqueue_scripts', 'cmt_styles');
|
|
|
|
function cmt_block_styles() {
|
|
add_theme_support( 'editor-styles' );
|
|
add_theme_support( 'wp-block-styles' );
|
|
add_editor_style( 'styles.css' );
|
|
}
|
|
add_action( 'after_setup_theme', 'cmt_block_styles' );
|
|
|
|
function cmt_pattern_categories() {
|
|
register_block_pattern_category(
|
|
'cmt',
|
|
array( 'label' => __( 'CMT Engineering', 'cmt' ) )
|
|
);
|
|
}
|
|
add_action( 'init', 'cmt_pattern_categories' ); |