From bedc33bd1e71ed834db660f0872afb64918cc4bb Mon Sep 17 00:00:00 2001 From: Adolfo Reyna Date: Fri, 13 Mar 2026 10:01:03 -0400 Subject: [PATCH] Refine Medium layout: wider hero image, reordered comments, thumbnail nav --- comments.php | 55 ++++++++++++++++++++++++++-------------------------- single.php | 40 +++++++++++++++++++++++++++++++++----- style.css | 24 +++++++++++++++++++++++ 3 files changed, 87 insertions(+), 32 deletions(-) diff --git a/comments.php b/comments.php index 5c3017a..733b925 100644 --- a/comments.php +++ b/comments.php @@ -8,22 +8,41 @@ if (post_password_required()) { } ?> -
+
+ + 'comment-form mb-5', + 'class_submit' => 'btn btn-secondary fw-bold text-uppercase mt-4 px-4 py-2', + 'title_reply_before' => '

', + 'title_reply_after' => '

', + 'comment_field' => '
', + 'fields' => array( + 'author' => '
', + 'email' => '
', + 'url' => '
', + ), + ); + comment_form($args); + ?> -

+

' . get_the_title() . '' + esc_html__('One Response', 'wisdom1') ); } else { printf( - esc_html(_nx('%1$s thought on “%2$s”', '%1$s thoughts on “%2$s”', $comment_count, 'comments title', 'wisdom1')), - number_format_i18n($comment_count), - '' . get_the_title() . '' + esc_html(_nx('%1$s Response', '%1$s Responses', $comment_count, 'comments title', 'wisdom1')), + number_format_i18n($comment_count) ); } ?> @@ -35,7 +54,7 @@ if (post_password_required()) { array( 'style' => 'ol', 'short_ping' => true, - 'avatar_size' => 60, + 'avatar_size' => 0, ) ); ?> @@ -47,29 +66,11 @@ if (post_password_required()) { // If comments are closed and there are comments, let's leave a little note, shall we? if (!comments_open()): ?> -

+

'comment-form mt-4', - 'class_submit' => 'btn btn-secondary fw-bold text-uppercase mt-4 px-4 py-2', - 'title_reply_before' => '

', - 'title_reply_after' => '

', - 'comment_field' => '
', - 'fields' => array( - 'author' => '
', - 'email' => '
', - 'url' => '
', - ), - ); - comment_form($args); ?>
\ No newline at end of file diff --git a/single.php b/single.php index d5b2122..01acb7a 100644 --- a/single.php +++ b/single.php @@ -39,7 +39,7 @@ get_header(); ?>
'img-fluid w-100', + 'class' => 'img-fluid article-hero-image rounded', 'style' => 'aspect-ratio: 16/9; object-fit: cover;' )); ?>
@@ -71,11 +71,41 @@ get_header(); ?>
diff --git a/style.css b/style.css index 9359b26..65425b5 100644 --- a/style.css +++ b/style.css @@ -227,6 +227,10 @@ a:hover { color: var(--brand-deep-midnight); } +.comment-list .comment-author .says { + display: none; +} + .comment-list .comment-author img { border-radius: 50%; } @@ -295,4 +299,24 @@ a:hover { .footer-link:hover { color: var(--brand-gold-leaf); +} + +/* --- 5. Article Details Custom Styles --- */ +.article-hero-image { + width: 100%; +} + +@media (min-width: 992px) { + .article-hero-image { + width: calc(100% + 20%); + margin-left: -10%; + } +} + +.post-nav-thumbnail { + width: 80px; + height: 80px; + object-fit: cover; + border-radius: 4px; + flex-shrink: 0; } \ No newline at end of file