This repository has been archived by the owner on May 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfunctions.php
53 lines (40 loc) · 1.95 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
<?php
//* Start the engine
include_once( get_template_directory() . '/lib/init.php' );
//* Child theme (do not remove)
define( 'CHILD_THEME_NAME', 'Materialize Genesis' );
define( 'CHILD_THEME_URL', 'http://www.rotsenacob.com/' );
define( 'CHILD_THEME_VERSION', '1.0.0' );
//* Child theme specific folder paths
define( 'MG_CSS', CHILD_URL . '/assets/css/' );
define( 'MG_JS', CHILD_URL . '/assets/js/' );
define( 'MG_IMG', CHILD_URL . '/images/' );
define( 'MG_LIB', CHILD_DIR . '/lib/' );
define( 'MG_MODULES', CHILD_DIR . '/lib/modules/' );
//* Add HTML5 markup structure
add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list' ) );
//* Add Accessibility support
add_theme_support( 'genesis-accessibility', array( 'headings', 'drop-down-menu', 'search-form', 'skip-links', 'rems' ) );
//* Add viewport meta tag for mobile browsers
add_theme_support( 'genesis-responsive-viewport' );
//* Add support for custom background
// add_theme_support( 'custom-background' );
//* Add support for 3-column footer widgets
add_theme_support( 'genesis-footer-widgets', 3 );
//* Unregister unneeded sidebars
unregister_sidebar( 'header-right' );
//* Remove the secondary navigation
remove_action( 'genesis_after_header', 'genesis_do_subnav' );
//* Remove header
remove_action( 'genesis_header', 'genesis_header_markup_open', 5 );
remove_action( 'genesis_header', 'genesis_header_markup_close', 15 );
remove_action( 'genesis_header', 'genesis_do_header' );
add_theme_support( 'genesis-structural-wraps', array( 'header', 'menu-primary', 'footer-copyright', 'site-inner', 'footer-widgets' ) );
//* Move Sidebar Secondary After Content
remove_action( 'genesis_after_content_sidebar_wrap', 'genesis_get_sidebar_alt' );
add_action( 'genesis_after_content', 'genesis_get_sidebar_alt' );
//* Include php files from lib folder
//* @link https://gist.github.com/theandystratton/5924570
foreach ( glob( dirname( __FILE__ ) . '/lib/*.php' ) as $file ) {
require_once $file;
}