forked from Abbas-b-b/CetyWebsiteTheme
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctions.php
More file actions
45 lines (36 loc) · 1.3 KB
/
Copy pathfunctions.php
File metadata and controls
45 lines (36 loc) · 1.3 KB
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
<?php
//Include all variables that needed
require_once(get_template_directory() . '/inc/Config.php');
/* Actions */
//theme features support and defualts
add_action('after_setup_theme', function () {
//custom logo setup
add_theme_support(
'custom-logo',
array(
'height' => 100,
'width' => 400,
'flex-height' => true,
'flex-width' => true,
'header-text' => array('site-title', 'site-description'),
)
);
//nav bar menu
register_nav_menus(
array(
HeaderNavigationMenuLocation => __('Header Navigation Menu', CetyWebsiteThemeTextDomain),
HeaderSocialMediaMenuLocation => __('Header Social Menu', CetyWebsiteThemeTextDomain),
FooterSocialMediaMenuLocation => __('Footer Social Menu', CetyWebsiteThemeTextDomain),
)
);
//post image support(featured image)
add_theme_support('post-thumbnails');
//selective refresh suppport
add_theme_support('customize-selective-refresh-widgets');
});
//register all styles and scripts
add_action('template_redirect', function () {
require_once(get_template_directory() . '/inc/StylesAndScriptsRegistration.php');
});
//add customizer
require_once(get_template_directory() . '/inc/Customizer.php');