-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.php
49 lines (36 loc) · 2.66 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
<?php
function yl_theme_support()
{
Add_theme_support('title-tag');
}
add_action('after_setup_theme','yl_theme_support');
function yl_links(){
// <!-- Icon Font Stylesheet -->
$version = wp_get_theme()->get('version');
wp_enqueue_style('yl_iconFont',"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.10.0/css/all.min.css",array(),'1.0','all');
wp_enqueue_style('yl_iconFont1',"https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css",array(),'1.0','all');
// <!-- End Icon Font Stylesheet -->
// <!-- Google Web Fonts -->
wp_enqueue_style('yl_Fontsg',"https://fonts.googleapis.com",array(),'1.0','all');
wp_enqueue_style('yl_Fontsg1',"https://fonts.gstatic.com",array(),'1.0','all');
wp_enqueue_style('yl_Fontsg2',"https://fonts.googleapis.com/css2?family=Jost:wght@500;600;700&family=Open+Sans:wght@400;500&display=swap",array(),'1.0','all');
// <!-- End Google Web Fonts --> <!-- Libraries Stylesheet -->
wp_enqueue_style('yl_animate',get_template_directory_uri()."/assets/lib/animate/animate.min.css",array(),'1.0','all');
wp_enqueue_style('yl_animate1',get_template_directory_uri()."/assets/lib/owlcarousel/assets/owl.carousel.min.css",array(),'1.0','all');
wp_enqueue_style('yl_bootstrap',get_template_directory_uri()."/assets/css/bootstrap.min.css",array(),'1.0','all');
wp_enqueue_style('yl_style',get_template_directory_uri()."/assets/css/style.css",array(),$version,'all');
}
add_action('wp_enqueue_scripts','yl_links');
function yl_scripts()
{
wp_enqueue_script('yl_JQ',"https://code.jquery.com/jquery-3.4.1.min.js",array(),'1.0','all');
wp_enqueue_script('yl_jsdelivr',"https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js",array(),'1.0','all');
wp_enqueue_script('yl_wow',get_template_directory_uri()."/assets/lib/wow/wow.min.js",array(),'1.0','all');
wp_enqueue_script('yl_easing',get_template_directory_uri()."/assets/lib/easing/easing.min.js",array(),'1.0','all');
wp_enqueue_script('yl_waypoints',get_template_directory_uri()."/assets/lib/waypoints/waypoints.min.js",array(),'1.0','all');
wp_enqueue_script('yl_owlcarousel',get_template_directory_uri()."/assets/lib/owlcarousel/owl.carousel.min.js",array(),'1.0','all');
wp_enqueue_script('yl_counterup',get_template_directory_uri()."/assets/lib/counterup/counterup.min.js",array(),'1.0','all');
wp_enqueue_script('yl_js',get_template_directory_uri()."/assets/js/main.js",array(),'1.0','all');
}
add_action('wp_enqueue_scripts','yl_scripts');
?>