From 4b7e9c1e88c0b0f570304530edd53bad85988948 Mon Sep 17 00:00:00 2001
From: Kelly Dwan <ryelle@users.noreply.github.com>
Date: Mon, 16 Apr 2018 12:59:41 -0400
Subject: [PATCH] CampSite: Add custom logo support
---
.../public_html/wp-content/themes/campsite-2017/functions.php | 7 +++++++
.../themes/campsite-2017/template-parts/header/site-branding.php | 2 ++
2 files changed, 9 insertions(+)
diff --git wordcamp.org/public_html/wp-content/themes/campsite-2017/functions.php wordcamp.org/public_html/wp-content/themes/campsite-2017/functions.php
index d0eec64e7..a9d762e79 100644
|
|
|
function setup_theme() {
|
| 39 | 39 | ) ) |
| 40 | 40 | ); |
| 41 | 41 | |
| | 42 | add_theme_support( 'custom-logo', array( |
| | 43 | 'height' => 250, |
| | 44 | 'width' => 250, |
| | 45 | 'flex-width' => true, |
| | 46 | 'flex-height' => true, |
| | 47 | ) ); |
| | 48 | |
| 42 | 49 | register_nav_menus( array( |
| 43 | 50 | 'primary' => esc_html__( 'Primary', 'wordcamporg' ), |
| 44 | 51 | 'secondary' => esc_html__( 'Secondary', 'wordcamporg' ), |
diff --git wordcamp.org/public_html/wp-content/themes/campsite-2017/template-parts/header/site-branding.php wordcamp.org/public_html/wp-content/themes/campsite-2017/template-parts/header/site-branding.php
index 251936e0d..226884450 100644
|
|
|
$description = get_bloginfo( 'description', 'display' );
|
| 15 | 15 | ?> |
| 16 | 16 | |
| 17 | 17 | <div class="site-branding"> |
| | 18 | <?php the_custom_logo(); ?> |
| | 19 | |
| 18 | 20 | <?php if ( is_front_page() && is_home() ) : ?> |
| 19 | 21 | |
| 20 | 22 | <h1 class="site-title"> |