-
-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Milestone
Description
Add Additional Image Sizes and Custom Aspect Ratios to LSX Design Theme
Objective:
Enhance the LSX Design theme by introducing new image sizes and custom aspect ratios to improve flexibility and ensure consistent visuals across different screen sizes.
New Image Sizes:
- Small Thumbnail: 180px x 120px (Aspect Ratio: 3:2) — For small previews or sidebar widgets.
- Medium-Large: 800px x 600px (Aspect Ratio: 4:3) — Ideal for content areas requiring medium-sized visuals.
- Extra Large: 1600px x 900px (Aspect Ratio: 16:9) — Suitable for high-resolution banners or hero images.
Custom Aspect Ratios:
- Square: 1:1 — Perfect for avatars, icons, or product thumbnails.
- Portrait: 3:4 — Useful for displaying vertical images in galleries or listings.
- Ultra-Wide: 21:9 — Best for cinematic banners and wide-format presentations.
Implementation Steps:
- Register these new image sizes and aspect ratios in the
theme.jsonfile. - Test the new image sizes and ratios to ensure they render correctly on different devices and screen sizes.
- Validate compatibility with WordPress 6.6's custom aspect ratio feature.
References:
- Registering Custom Aspect Ratios in WordPress 6.6
- Custom aspect ratios
- Image block doesn’t support this with wide/full alignment yet.
- Followup tasks
- Core convention to use hyphenated numbers for slugs, e.g., 21-9.
- Cover, Image, Post Featured Image.
- Dev Note: Add custom aspect ratios through theme.json
Acceptance Criteria:
- New image sizes and aspect ratios are correctly defined and available in the LSX Design theme.
- Image rendering is consistent and optimised across all supported devices.
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Needs Triage