This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Twenty Seventeen: Color Patterns | |
* | |
* Direct reduction of style.css - all non-color-related properties have been removed, but no selectors have been combined or reordered. | |
*/ | |
fieldset { | |
border-color: #c0c0c0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// In inc/customize.php: | |
function twentyseventeen_customize_register( $wp_customize ) { | |
// Adjust the header image section to also include video. | |
$wp_customize->get_section( 'header_image' )->title = __( 'Header', 'twentyseventeen' ); | |
$wp_customize->get_section( 'header_image' )->active_callback = 'is_front_page'; | |
$wp_customize->add_setting( 'header_video', array( | |
'sanitize_callback' => 'absint', // Attachment id is saved. | |
'transport' => 'postMessage', |