From: Ian Weller Date: Fri, 28 Apr 2017 18:25:16 +0000 (-0400) Subject: I added some more customizalbe options X-Git-Tag: v1.0.0^2~9 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=62021b6279051a63f603d5c24b7445d327f09818;p=WP-Themes%2Fn8dnx.git I added some more customizalbe options I added some support code to enable more customization to the theme than I initailly had. --- 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 @@ - + >