Making WordPress.org

Ticket #3575: 3575.diff

File 3575.diff, 1.7 KB (added by ryelle, 7 years ago)
  • wordcamp.org/public_html/wp-content/themes/campsite-2017/functions.php

    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() { 
    3939                ) )
    4040        );
    4141
     42        add_theme_support( 'custom-logo', array(
     43                'height'      => 250,
     44                'width'       => 250,
     45                'flex-width'  => true,
     46                'flex-height' => true,
     47        ) );
     48
    4249        register_nav_menus( array(
    4350                'primary'   => esc_html__( 'Primary',   'wordcamporg' ),
    4451                'secondary' => esc_html__( 'Secondary', 'wordcamporg' ),
  • wordcamp.org/public_html/wp-content/themes/campsite-2017/template-parts/header/site-branding.php

    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' ); 
    1515?>
    1616
    1717<div class="site-branding">
     18        <?php the_custom_logo(); ?>
     19
    1820        <?php if ( is_front_page() && is_home() ) : ?>
    1921
    2022                <h1 class="site-title">