-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctions.php
More file actions
29 lines (24 loc) · 949 Bytes
/
functions.php
File metadata and controls
29 lines (24 loc) · 949 Bytes
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
<?php
/**
* Start Stackable Theme Functions
*/
if ( ! function_exists( 'start_stackable_setup' ) ) {
/**
* Sets up theme defaults and registers support for various WordPress features.
*/
function start_stackable_setup() {
add_theme_support( 'wp-block-styles' );
add_theme_support( 'responsive-embeds' );
add_theme_support( 'editor-styles' );
}
add_action( 'after_setup_theme', 'start_stackable_setup' );
}
function start_stackable_enqueue_styles() {
$style_path = get_template_directory_uri() . '/assets/css/design-system.css';
// Frontend
wp_enqueue_style('start-stackable-block-styles', $style_path, [], wp_get_theme()->get('Version'));
// Editor
wp_enqueue_style('start-stackable-styles-editor', $style_path, [], wp_get_theme()->get('Version'));
}
add_action('wp_enqueue_scripts', 'start_stackable_enqueue_styles');
add_action('enqueue_block_editor_assets', 'start_stackable_enqueue_styles');