Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
Paring down, adding walkers
Browse files Browse the repository at this point in the history
* removing unused features like custom site header, custom bg, post
formats, etc. Will add them back in when/if ever needed.
* Forcibly unregistering superflous core widgets
* hiding parts of PageLayout UI
  • Loading branch information
andrewmbacon committed Jun 29, 2015
1 parent 5ca9fc8 commit 16ea340
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 71 deletions.
25 changes: 11 additions & 14 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,6 @@ function cs_setup() {
'primary' => __( 'Primary Menu', 'cs' ),
) );

// Enable support for Post Formats.
add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link' ) );

// Setup the WordPress core custom background feature.
add_theme_support( 'custom-background', apply_filters( 'cs_custom_background_args', array(
'default-color' => 'ffffff',
'default-image' => '',
) ) );

// Enable support for HTML5 markup.
add_theme_support( 'html5', array(
'comment-list',
Expand Down Expand Up @@ -108,10 +99,6 @@ function cs_widgets_init() {
*/
require get_template_directory() . '/inc/private-pages.php';

/**
* Implement the Custom Header feature.
*/
require get_template_directory() . '/inc/custom-header.php';

/**
* Custom template tags for this theme.
Expand All @@ -129,9 +116,11 @@ function cs_widgets_init() {
require get_template_directory() . '/inc/customizer.php';

/**
* New versions of functions from Hale, added as includes
* New nav walkers
*/
require get_template_directory() . '/inc/nav-walker.php';
require get_template_directory() . '/inc/nav-drop-multi-walker.php';
require get_template_directory() . '/inc/nav-tabs-walker.php';

/**
* Bootstrap the comment form.
Expand Down Expand Up @@ -235,4 +224,12 @@ function remove_submenu() {
}
add_action( 'admin_menu', 'remove_submenu', 999 );

function remove_core_widgets() {
unregister_widget('WP_Widget_Calendar');
unregister_widget('WP_Widget_Meta');
}
add_action( 'widgets_init', 'remove_core_widgets' );



?>
56 changes: 0 additions & 56 deletions inc/customizer-colors.php

This file was deleted.

1 change: 0 additions & 1 deletion inc/customizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ function cs_customize_register( $wp_customize ) {

include('customizer-titlebar.php');
include('customizer-nav.php');
include('customizer-colors.php');
include('customizer-homepage-layout.php');
}
add_action( 'customize_register', 'cs_customize_register' );
Expand Down

0 comments on commit 16ea340

Please sign in to comment.