forked from WordPress/twentytwentyfive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
functions.php
37 lines (35 loc) · 889 Bytes
/
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
34
35
36
37
<?php
/**
* Twenty Twenty-Five functions and definitions
*
* @link https://developer.wordpress.org/themes/basics/theme-functions/
*
* @package WordPress
* @subpackage Twenty_Twenty_Five
* @since Twenty Twenty-Five 1.0
*/
/**
* Enqueue editor-style.css in the editors.
*
* @since Twenty Twenty-Five 1.0
* @return void
*/
function twentytwentyfive_editor_style() {
add_editor_style( get_parent_theme_file_uri( 'assets/css/editor-style.css' ) );
}
add_action( 'after_setup_theme', 'twentytwentyfive_editor_style' );
/**
* Enqueue stylesheet.css on the front.
*
* @since Twenty Twenty-Five 1.0
* @return void
*/
function twentytwentyfive_enqueue_styles() {
wp_enqueue_style(
'twentytwentyfive-style',
get_parent_theme_file_uri( 'style.css' ),
array(),
wp_get_theme()->get( 'Version' ),
);
}
add_action( 'wp_enqueue_scripts', 'twentytwentyfive_enqueue_styles' );