Skip to content

[6.6 Theme Handbook] Documentation outdated for theme.json > settings > dimensions #1660

@maximebj

Description

@maximebj

Issue Description

The documentation states that there is only one property for dimensions but there are new ones since 6.5 or 6.6.

URL of the Page with the Issue

https://developer.wordpress.org/themes/global-settings-and-styles/settings/dimensions/

Section of Page with the issue

Dimensions settings

Why is this a problem?

Now there is also :

  • aspectRatio (bool)
  • defaultAspectRatios (bool)
  • aspectRatios (array of values)

For now, there is no explanation about theses values. Hopefully, the theme.json schema helped me find the syntax for the custom aspects ratios

Suggested Fix

  • Add a section for each new value
  • Add an exemple on how to define custom aspect ratios

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Status] To doIssue marked as Tododeveloper documentation (DevHub)Improvements or additions to developer documentationthemesIssues for Theme Developer Handbook

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions