I added some more customizalbe options
authorIan Weller <ian@gaslightmedia.com>
Fri, 28 Apr 2017 18:25:16 +0000 (14:25 -0400)
committerIan Weller <ian@gaslightmedia.com>
Fri, 28 Apr 2017 18:25:16 +0000 (14:25 -0400)
I added some support code to enable more customization to the theme than
I initailly had.

functions.php
header.php

index 509f99e..07205a0 100644 (file)
@@ -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
  *
index 747f0fb..f1b809e 100644 (file)
@@ -9,7 +9,7 @@
     <link href='//fonts.googleapis.com/css?family=Balthazar' rel='stylesheet' type='text/css'>
        <?php wp_head();?>
   </head>
-  <body>
+  <body <?php  body_class(  ); ?>>
     <div class="off-canvas-wrap" data-offcanvas>
         <div class="inner-wrap">
             <div id='shadow_wrapper'>