-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctions.php
More file actions
executable file
·44 lines (38 loc) · 1.35 KB
/
functions.php
File metadata and controls
executable file
·44 lines (38 loc) · 1.35 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
<?php
require_once 'class-social-walker.php';
require_once 'functions/actions.php';
require_once 'functions/filters.php';
require_once 'functions/sidebars.php';
add_filter( 'body_class', 'nyctech_body_class_filter', 11 );
add_action( 'wp_enqueue_scripts', 'nyctech_load_js_scripts' );
add_action( 'wp_enqueue_scripts', 'nyctech_load_icomoon' );
add_action( 'after_setup_theme', 'nyctech_theme_support' );
add_action( 'init', 'nyctech_check_title_support' );
add_action( 'pre_get_posts', 'nyctech_modify_main_query' );
/* -------------------------------------------------------------------------- */
/**
* Provide a fallback if theme-support for title-tag not avaiable
*
* On the homepage, it add the site description to the site name. On
* other pages, it add the site name to the standard page title
*
* @since 1.0
* @uses wp_title filter
*
* @param string $title the title of the page
* @param string $sep a separator. one or more characters to divide the
* page title
* @param string $seplocation can be 'left' or 'right'. default: left.
* @return string
*/
/*
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* MENUS AND SIDEBARS *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*/
register_nav_menus(
array(
'main_menu' => 'Main Menu',
'footer_menu' => 'Footer Menu',
)
);