-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctions.php
More file actions
34 lines (30 loc) · 1.06 KB
/
functions.php
File metadata and controls
34 lines (30 loc) · 1.06 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
<?php
/**
* Basic theme features you can remove by uncommenting the appropriate line(s).
*/
function remove_neat_parent_theme_features() {
// remove_theme_support( 'post-formats' );
// remove_theme_support( 'post-thumbnails' );
// remove_theme_support( 'custom-background' );
// remove_theme_support( 'custom-header' );
// remove_theme_support( 'automatic-feed-links' );
}
/**
* Uncommenting these two lines will allow you to disable superfish and the meanmenu mobile nav
*/
function remove_neat_actions() {
// remove_action( 'wp_head', 'dg_add_superfish' );
// remove_action( 'wp_head', 'dg_add_meanmenu' );
}
add_action( 'init','remove_neat_actions' );
/**
* Allows you to remove/unregister built in sidebars and widgets
*/
function remove_neat_parent_theme_sidebars() {
// remove (some) WordPress default Widgets
// unregister_widget( 'WP_Widget_Pages' );
// unregister_widget( 'WP_Widget_Calendar' );
// remove Parent Sidebars
// unregister_sidebar( 'sidebar-1' );
}
add_action( 'widgets_init', 'remove_neat_parent_theme_sidebars', 15 );