-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathfunctions.php
49 lines (35 loc) · 1.92 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 pagetitle(){
add_theme_support('title-tag');
}
add_action('after_setup_theme', 'pagetitle');
function portfolio_style(){
wp_enqueue_style('portfolio_default_style', get_stylesheet_uri());
#Boostrap_Files
wp_enqueue_style('bootstrap_style', get_theme_file_uri('/css/bootstrap.min.css'));
wp_enqueue_style('fontawesome_style', get_theme_file_uri('/css/font-awesome.min.css'));
wp_enqueue_style('animate_style', get_theme_file_uri('/css/animate.css'));
wp_enqueue_style('magnific_popup_style', get_theme_file_uri('/css/magnific-popup.css'));
#Font Files
#wp_enqueue_style('fontawesome', get_theme_file_uri('/fonts/FontAwesome.otf'));
wp_enqueue_style('custom_google_fonts', '//fonts.googleapis.com/css?family=Poppins:300,400');
#JS Files
wp_enqueue_script('bootstrap_min_js', get_theme_file_uri('/js/bootstrap.min.js'), array(), 1.2, 'all');
wp_enqueue_script('custom_js', get_theme_file_uri('/js/custom.js'), array(), false, 'all');
wp_enqueue_script('jquery_js', get_theme_file_uri('/js/jquery.js'), array(), false, 'all');
wp_enqueue_script('jquery_magnific-popup_js', get_theme_file_uri('/js/owl.carousel.min.js'), array(), false, 'all');
wp_enqueue_script('jquery.parallax_js', get_theme_file_uri('/js/owl.carousel.min.js'), array(), false, 'all');
wp_enqueue_script('owl_magnific-popup-options_js', get_theme_file_uri('/js/owl.carousel.min.js'), array(), false, 'all');
wp_enqueue_script('smoothscroll_js', get_theme_file_uri('/js/smoothscroll.js'), array(), false, 'all');
wp_enqueue_script('wow.min_js', get_theme_file_uri('/js/owl.carousel.min.js'), array(), false, 'all');
}
add_action('wp_enqueue_scripts', 'portfolio_style');
add_theme_support('menus');
register_nav_menus(
array(
'top-menu' => __('Primary Menu', 'theme'),
'footer-menu' => __('Footer Menu', 'theme'),
'sidebar-menu' => __('Sidebar Menu', 'theme'),
)
);
?>