-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfunctions.php
33 lines (25 loc) · 1.27 KB
/
functions.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
/* -----------------------------------------------------------------------------------------------
THEME SUPPORTS
--------------------------------------------------------------------------------------------------- */
function davis_blocks_setup() {
add_editor_style( 'style.css' );
}
add_action( 'after_setup_theme', 'davis_blocks_setup' );
/* -----------------------------------------------------------------------------------------------
ENQUEUE STYLESHEETS
--------------------------------------------------------------------------------------------------- */
function davis_blocks_styles() {
wp_enqueue_style( 'davis-blocks-styles', get_template_directory_uri() . '/style.css', array(), wp_get_theme( 'davis-blocks' )->get( 'Version' ) );
}
add_action( 'wp_enqueue_scripts', 'davis_blocks_styles' );
/* -----------------------------------------------------------------------------------------------
REGISTER BLOCK STYLES
--------------------------------------------------------------------------------------------------- */
function davis_blocks_register_block_styles() {
register_block_style( 'core/separator', array(
'name' => 'davis-separator',
'label' => esc_html__( 'Diamonds', 'davis-blocks' ),
) );
}
add_action( 'init', 'davis_blocks_register_block_styles' );