Skip to content
This repository was archived by the owner on Jun 14, 2026. It is now read-only.
This repository was archived by the owner on Jun 14, 2026. It is now read-only.

Responsive images sizes attribute is broken #9

Description

@k1sul1

The sizes attribute will use the content_width global to ruin layouts. Simply put: If your content_width is 600, your images won't be wider than that, because the attribute value is (max-width: 600px) 100vw, 600px.

https://make.wordpress.org/core/2015/11/10/responsive-images-in-wordpress-4-4/

Change with wp_calculate_image_sizes filter.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions