-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.php
65 lines (58 loc) · 3.5 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php
/**
* Theme Functions goes here
**/
add_theme_support('title-tag');
// calling all important files like css js jquery and bootstrap
function fruity_register_important_files()
{
wp_enqueue_style('fruity_style', get_stylesheet_uri());
// registering bootstrap
wp_register_style('fruity_bootstrap', get_template_directory_uri() . '/css/bootstrap.css', array(), "4.0.0", "all");
wp_enqueue_style('fruity_bootstrap');
// registering custom css
wp_register_style('fruity_root_stylesheet', get_template_directory_uri() . '/css/root.css', array(), "4.0.0", "all");
wp_enqueue_style('fruity_root_stylesheet');
wp_register_style('fruity_hero_stylesheet', get_template_directory_uri() . '/css/home/hero.css', array(), "4.0.0", "all");
wp_enqueue_style('fruity_hero_stylesheet');
wp_register_style('fruity_home_cetegory_stylesheet', get_template_directory_uri() . '/css/home/category.css', array(), "4.0.0", "all");
wp_enqueue_style('fruity_home_cetegory_stylesheet');
wp_register_style('fruity_hurry_up_stylesheet', get_template_directory_uri() . '/css/home/hurry_up.css', array(), "4.0.0", "all");
wp_enqueue_style('fruity_hurry_up_stylesheet');
wp_register_style('fruity_why_chose_us', get_template_directory_uri() . '/css/home/why_chose_us.css', array(), "4.0.0", "all");
wp_enqueue_style('fruity_why_chose_us');
wp_register_style('fruity_any_qs', get_template_directory_uri() . '/css/home/any_qs.css', array(), "4.0.0", "all");
wp_enqueue_style('fruity_any_qs');
wp_register_style('fruity_our_clints', get_template_directory_uri() . '/css/home/our_clints.css', array(), "4.0.0", "all");
wp_enqueue_style('fruity_our_clints');
wp_register_style('fruity_banner', get_template_directory_uri() . '/css/home/banner.css', array(), "4.0.0", "all");
wp_enqueue_style('fruity_banner');
wp_register_style('fruity_header', get_template_directory_uri() . '/css/header.css', array(), "4.0.0", "all");
wp_enqueue_style('fruity_header');
wp_register_style('fruity_footer', get_template_directory_uri() . '/css/footer.css', array(), "4.0.0", "all");
wp_enqueue_style('fruity_footer');
wp_register_style('fruity_login', get_template_directory_uri() . '/css/log-in.css', array(), "4.0.0", "all");
wp_enqueue_style('fruity_login');
//google font
wp_enqueue_style('fruity_google_font', 'https://fonts.googleapis.com/css2?family=Ubuntu&display=swap', false);
// font awesome
wp_enqueue_style('fruity_font_awesome', 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css', false);
// registering js
wp_enqueue_script('jquery');
wp_enqueue_script('fruity_bootstrap_js', get_template_directory_uri() . '/js/bootstrap.js', array(), "4.0.0", "true");
wp_enqueue_script('fruity_root_js', get_template_directory_uri() . '/js/root.js', array(), "1.0.0", "true");
wp_enqueue_script('fruity_menu_js', get_template_directory_uri() . '/js/responsive_menu.js', array(), "1.0.0", "true");
wp_enqueue_script('fruity_hurry_up_counter_js', get_template_directory_uri() . '/js/home/hurry_up_countdown.js', array(), "1.0.0", "true");
wp_enqueue_script('fruity_hero_js', get_template_directory_uri() . '/js/home/hero.js', array(), "1.0.0", "true");
}
add_action("wp_enqueue_scripts", "fruity_register_important_files");
// registering menu
function Fruity_Menus() {
register_nav_menus(
array(
'header-menu' => __( 'Header' ),
'footer-menu' => __( 'Footer' )
)
);
}
add_action( 'init', 'Fruity_Menus' );