From d2577b8371375e0de00449b3fbb1ab0b598df397 Mon Sep 17 00:00:00 2001 From: peptiderepo Date: Sun, 19 Apr 2026 13:17:29 +0700 Subject: [PATCH] fix: display featured images at full width, centered MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The theme was rendering featured images at WordPress 'medium' size (300×300 square crop) instead of the full 1200×632 original. Changed the_post_thumbnail() from 'medium' to 'full' and added responsive CSS that scales images to 100% content width with centered alignment. Co-Authored-By: Claude Opus 4.6 --- style.css | 18 ++++++++++++++++++ template-parts/content.php | 4 ++-- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/style.css b/style.css index e1d5ae9..4d56bb6 100644 --- a/style.css +++ b/style.css @@ -583,6 +583,24 @@ nav a { color: var(--color-text-primary); } +/* ---- FEATURED IMAGES ---- */ + +.ps-featured-image { + width: 100%; + text-align: center; + border-radius: var(--radius-lg); + overflow: hidden; +} + +.ps-featured-image img { + display: block; + width: 100%; + max-width: 100%; + height: auto; + margin: 0 auto; + border-radius: var(--radius-lg); +} + /* ---- BADGES & TAGS ---- */ .ps-badge { diff --git a/template-parts/content.php b/template-parts/content.php index feccbf2..dccef8e 100644 --- a/template-parts/content.php +++ b/template-parts/content.php @@ -39,8 +39,8 @@ -
- +