Make WordPress Core


Ignore:
Timestamp:
03/09/2016 11:01:53 PM (8 years ago)
Author:
karmatosed
Message:

Twenty Fifteen: add support for site logos
Fixes #35944
Props @iamtakashi, @celloexpressions, @drebbits.web

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfifteen/functions.php

    r32843 r36913  
    103103        'aside', 'image', 'video', 'quote', 'link', 'gallery', 'status', 'audio', 'chat'
    104104    ) );
     105
     106    /*
     107     * Enable support for custom logo.
     108     *
     109     * @since Twenty Fifteen 1.5
     110     */
     111    add_image_size( 'twentyfifteen-logo', 248, 248 );
     112    add_theme_support( 'custom-logo', array( 'size' => 'twentyfifteen-logo' ) );
    105113
    106114    $color_scheme  = twentyfifteen_get_color_scheme();
Note: See TracChangeset for help on using the changeset viewer.