Tutorial on aspect ratios in WordPress 6.6 #281
Replies: 2 comments
-
Topic was approved. Continue conversation on the issue |
Beta Was this translation helpful? Give feedback.
0 replies
-
Closing this out. It seems to have been published. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This is a new feature landing in WordPress 6.6 for theme authors: https://make.wordpress.org/core/2024/06/24/miscellaneous-editor-changes-in-wordpress-6-6/#Add-custom-Aspect-Ratio-presets-through-theme-json
I propose a simple walkthrough tutorial of how to implement custom aspect ratios via
theme.json
or theme style variations. The tutorial could even include they can be used in patterns/templates. This feature allows users to use these aspect ratios with blocks that support them, such as Image, Featured Image, and Cover. _Note that wide/full Image blocks do not currently support setting an aspect ratio.Example of custom ratios as shown in the editor:
This should be pretty low-hanging fruit in terms of a tutorial.
Beta Was this translation helpful? Give feedback.
All reactions