Skip to content
This repository was archived by the owner on Jan 15, 2019. It is now read-only.

Add custom sizes attribute to post body images. - #629

Closed
mor10 wants to merge 6 commits into
WordPress:masterfrom
mor10:try/responsive-body-images
Closed

mor10 wants to merge 6 commits into
WordPress:masterfrom
mor10:try/responsive-body-images

Conversation

@mor10

@mor10 mor10 commented Nov 17, 2018

Copy link
Copy Markdown
Contributor

Addresses #50. Replaces #411.

Dependent on WordPress/gutenberg#11973.

Add custom sizes attribute to images in post/page body. Provides custom values for "regular" and wide images and sets full images to the default.

Todo:

  • Test left/right aligned images (smaller than regular width.
  • Test gallery images.

@mor10

mor10 commented Nov 17, 2018

Copy link
Copy Markdown
Contributor Author

cc @azaozz @joemcgill @mtias

@mor10

mor10 commented Nov 26, 2018

Copy link
Copy Markdown
Contributor Author

@mor10

mor10 commented Dec 2, 2018

Copy link
Copy Markdown
Contributor Author

Updated PR to reflect how the filter will eventually work once the block attributes for the containing block are available in the wp_calculate_image_sizes filter.

cc @joemcgill

@kjellr

kjellr commented Jan 14, 2019

Copy link
Copy Markdown
Collaborator

This PR has been ported over as a patch on this Trac ticket: https://core.trac.wordpress.org/ticket/45985

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants