From fc52e65eb4c604a8ded62b64a97f83f0c33299d4 Mon Sep 17 00:00:00 2001 From: Ian Weller Date: Fri, 30 Dec 2016 09:57:49 -0500 Subject: [PATCH] first generic edit commits I have added the generic code that allows edits from the appearance menu on the admin side. --- functions.php | 20 ++++++++++++++++++++ header.php | 33 ++++++++++++++------------------- style.css | 6 +++--- 3 files changed, 37 insertions(+), 22 deletions(-) diff --git a/functions.php b/functions.php index 1d3e2ae..b2e7d47 100644 --- a/functions.php +++ b/functions.php @@ -46,6 +46,26 @@ if (!function_exists('glm_get_clientinfo_option')) { add_theme_support('post-thumbnails'); set_post_thumbnail_size(120, 100, 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 d42dbe6..ffa996f 100644 --- a/header.php +++ b/header.php @@ -16,26 +16,21 @@
-
-
- map showing Emmet County -
-
- -
+
+ + + +

+ +

+ - -

Delta Air Line

-

(231) 539-8423 Local

-

(800) 221-1212 National

- -
-
-
-
Closest Airport to Mackinac Island!
-
-
+ $description = get_bloginfo( 'description', 'display' ); + if ( $description || is_customize_preview() ) : ?> +

+
diff --git a/style.css b/style.css index 3f099b9..83e6cb9 100644 --- a/style.css +++ b/style.css @@ -1,7 +1,7 @@ /* -Theme Name: PellstonAirport +Theme Name: GenericPellstonAirport Author: Gaslight Media Author URI: http://www.gaslightmedia.com -Description: A theme for PellstonAirport -Version: 1.0.7 +Description: A generic theme based on PellstonAirport +Version: 1.0 */ -- 2.17.1