From 62021b6279051a63f603d5c24b7445d327f09818 Mon Sep 17 00:00:00 2001 From: Ian Weller Date: Fri, 28 Apr 2017 14:25:16 -0400 Subject: [PATCH] I added some more customizalbe options I added some support code to enable more customization to the theme than I initailly had. --- functions.php | 20 ++++++++++++++++++++ header.php | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/functions.php b/functions.php index 509f99e..07205a0 100644 --- a/functions.php +++ b/functions.php @@ -68,6 +68,26 @@ add_filter('pre_get_posts','SearchFilter'); add_theme_support('post-thumbnails'); set_post_thumbnail_size(190, 130, true); +$defaults = array( + 'default-color' => '', + 'default-image' => '', + 'default-repeat' => '', + 'default-position-x' => '', + 'default-attachment' => '', + 'wp-head-callback' => '_custom_background_cb', + 'admin-head-callback' => '', + 'admin-preview-callback' => '' +); +add_theme_support( 'custom-background', $defaults ); +add_theme_support( 'title-tag' ); +add_theme_support( 'custom-logo', array( + 'height' => 200, + 'width' => 400, + 'flex-height' => true, + 'flex-width' => true, + 'header-text' => array ( 'site-title', 'site-description'), +) ); + /** * glm_site_scripts * diff --git a/header.php b/header.php index 747f0fb..f1b809e 100644 --- a/header.php +++ b/header.php @@ -9,7 +9,7 @@ - + >
-- 2.17.1