-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctions.php
More file actions
41 lines (35 loc) · 995 Bytes
/
functions.php
File metadata and controls
41 lines (35 loc) · 995 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
30
31
32
33
34
35
36
37
38
39
40
41
<?php
/**
* Functions and definitions
*
* @link https://developer.wordpress.org/themes/basics/theme-functions/
*
* @package Profiler
* @since 1.0.0
*/
/**
* Enqueue the style.css file.
*
* @since 1.0.0
*/
function profiler_style()
{
wp_enqueue_style('profiler-style', get_stylesheet_uri(), array(), wp_get_theme()->get('Version'));
}
add_action('wp_enqueue_scripts', 'profiler_style');
if (! function_exists('profiler_setup') ) {
function profiler_setup()
{
// Add support for block styles.
add_theme_support('wp-block-styles');
// Enqueue editor styles.
add_editor_style( 'style.css' );
// Experimental support for adding blocks inside nav menus
add_theme_support( 'block-nav-menus' );
// Add support for experimental link color control.
add_theme_support( 'experimental-link-color' );
}
}
add_action('after_setup_theme', 'profiler_setup');
// Add block patterns
require get_template_directory() . '/inc/block-patterns.php';