diff --git a/functions.php b/functions.php index 0a94465..1a310bc 100644 --- a/functions.php +++ b/functions.php @@ -45,19 +45,6 @@ function wp386_setup() { register_nav_menus( array( 'primary' => __( 'Primary Menu', 'wp386' ), ) ); - - /** - * 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( 'wp386_custom_background_args', array( - 'default-color' => 'ffffff', - 'default-image' => '', - ) ) ); } endif; // wp386_setup add_action( 'after_setup_theme', 'wp386_setup' ); @@ -110,11 +97,6 @@ function wp386_scripts() { } add_action( 'wp_enqueue_scripts', 'wp386_scripts' ); -/** - * Implement the Custom Header feature. - */ -//require get_template_directory() . '/inc/custom-header.php'; - /** * Custom template tags for this theme. */ diff --git a/inc/custom-header.php b/inc/custom-header.php deleted file mode 100644 index da75539..0000000 --- a/inc/custom-header.php +++ /dev/null @@ -1,129 +0,0 @@ - - - - - - - * - * @package _s - */ - -/** - * Setup the WordPress core custom header feature. - * - * @uses wp386_header_style() - * @uses wp386_admin_header_style() - * @uses wp386_admin_header_image() - * - * @package _s - */ -function wp386_custom_header_setup() { - add_theme_support( 'custom-header', apply_filters( 'wp386_custom_header_args', array( - 'default-image' => '', - 'default-text-color' => '000', - 'width' => 1000, - 'height' => 250, - 'flex-height' => true, - 'wp-head-callback' => 'wp386_header_style', - 'admin-head-callback' => 'wp386_admin_header_style', - 'admin-preview-callback' => 'wp386_admin_header_image', - ) ) ); -} -add_action( 'after_setup_theme', 'wp386_custom_header_setup' ); - -if ( ! function_exists( 'wp386_header_style' ) ) : -/** - * Styles the header image and text displayed on the blog - * - * @see wp386_custom_header_setup(). - */ -function wp386_header_style() { - $header_text_color = get_header_textcolor(); - - // If no custom options for text are set, let's bail - // get_header_textcolor() options: HEADER_TEXTCOLOR is default, hide text (returns 'blank') or any hex value - if ( HEADER_TEXTCOLOR == $header_text_color ) - return; - - // If we get this far, we have custom styles. Let's do this. - ?> - - Header admin panel. - * - * @see wp386_custom_header_setup(). - */ -function wp386_admin_header_style() { -?> - - Header admin panel. - * - * @see wp386_custom_header_setup(). - */ -function wp386_admin_header_image() { - $style = sprintf( ' style="color:#%s;"', get_header_textcolor() ); - $header_image = get_header_image(); -?> -
-

onclick="return false;" href="">

-
>
- - - -
-