-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.php
35 lines (29 loc) · 891 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
<?php
function my_theme_enqueue_styles() {
$parent_style = 'affinity-style';
wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'child-style',
get_stylesheet_directory_uri() . '/style.css',
array( $parent_style ),
wp_get_theme()->get('Version')
);
}
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
/*
*
* ENQUE FONTS
*/
function bree_fonts() {
wp_enqueue_style('bree-carrick-google-fonts', 'https://fonts.googleapis.com/css?family=Great+Vibes|Raleway');
}
add_action( 'wp_enqueue_scripts', 'bree_fonts' );
/*
*
* ENQUE COUNTDOWN JS
*/
function enqueue_countdown() {
wp_register_script('my_countdown', get_template_directory_uri() . '/assets/js/countdown.js', false, false, true);
wp_enqueue_script('my_countdown');
}
add_action( 'wp_enqueue_scripts', 'enqueue_countdown' );
?>