Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,

    This is happening because of core responsive images feature.

    You can either use the wp_calculate_image_srcset and wp_calculate_image_sizes filters to modify the default srcset and sizes attributes or use Disable Responsive Images plugin to disable this feature.

    Hope that helps.

    Thread Starter angeladesign

    (@angeladesign)

    Thanks for your reply!
    What needs to change in this code to target only the header images? Thanks!

    function disable_srcset( $sources ) {
    return false;
    }
    add_filter( 'wp_calculate_image_srcset', 'disable_srcset' );
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Featured Image using Different Sizes in Screen Sizes’ is closed to new replies.