Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Responsive images sizes attribute is broken #9

Open
k1sul1 opened this issue Nov 21, 2017 · 0 comments
Open

Responsive images sizes attribute is broken #9

k1sul1 opened this issue Nov 21, 2017 · 0 comments

Comments

@k1sul1
Copy link
Contributor

k1sul1 commented Nov 21, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant