Ticket #39253: 55561.diff
| File 55561.diff, 919 bytes (added by , 2 years ago) |
|---|
-
src/wp-content/themes/twentyseventeen/functions.php
580 580 * Filters the `sizes` value in the header image markup. 581 581 * 582 582 * @since Twenty Seventeen 1.0 583 * @since Twenty Seventeen 3.7 Added larger image size for small screens. 583 584 * 584 585 * @param string $html The HTML image tag markup being filtered. 585 586 * @param object $header The custom header object returned by 'get_custom_header()'. … … 588 589 */ 589 590 function twentyseventeen_header_image_tag( $html, $header, $attr ) { 590 591 if ( isset( $attr['sizes'] ) ) { 591 $html = str_replace( $attr['sizes'], ' 100vw', $html );592 $html = str_replace( $attr['sizes'], '(max-width: 767px) 200vw, 100vw', $html ); 592 593 } 593 594 return $html; 594 595 }
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)