[wp-trac] [WordPress Trac] #42646: Customizer cropped images issue with flex-width=false and flex-height=false
WordPress Trac
noreply at wordpress.org
Mon Nov 27 08:16:31 UTC 2017
#42646: Customizer cropped images issue with flex-width=false and flex-height=false
-----------------------------+--------------------
Reporter: WebTrooper | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.9.2
Component: Customize | Version: 4.9
Severity: normal | Resolution:
Keywords: has-screenshots | Focuses:
-----------------------------+--------------------
Comment (by WebTrooper):
Just to be clear, you can add the following to twentyseventeen or a
childtheme thereof, to the functions.php.
{{{#!php
function bc_twentyseventeen_custom_header_setup() {
remove_theme_support( 'custom-header');
add_theme_support( 'custom-header', apply_filters(
'twentyseventeen_custom_header_args', array(
'default-image' => get_parent_theme_file_uri(
'/assets/images/header.jpg' ),
'width' => 2000,
'height' => 1200,
'flex-height' => false,
'flex-width' => false,
'video' => true,
'wp-head-callback' => 'twentyseventeen_header_style',
) ) );
}
add_action( 'after_setup_theme', 'bc_twentyseventeen_custom_header_setup',
11 );
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42646#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list