From c05a2980bba19f3b822bde9efe69669fc947389b Mon Sep 17 00:00:00 2001 From: Adolfo Reyna Date: Fri, 13 Mar 2026 11:28:07 -0400 Subject: [PATCH] Reduce comment padding and move post navigation below comments using card template --- comments.php | 14 ++++----- single.php | 87 ++++++++++++++++++++++------------------------------ 2 files changed, 44 insertions(+), 57 deletions(-) diff --git a/comments.php b/comments.php index 733b925..e824b57 100644 --- a/comments.php +++ b/comments.php @@ -8,7 +8,7 @@ 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' => '

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

', 'title_reply_after' => '

', - 'comment_field' => '
', + 'comment_field' => '
', 'fields' => array( - 'author' => '
', + 'author' => '
', 'email' => '
', 'url' => '
', ), @@ -32,7 +32,7 @@ if (post_password_required()) { ?> -

+

?>

- - - + $prev_post = get_previous_post(); + $next_post = get_next_post(); + if (!empty($prev_post) || !empty($next_post)): + ?> +
+

More Articles

+
+ + if (!empty($prev_post)) { + $post = $prev_post; + setup_postdata($post); + get_template_part('template-parts/content', 'card'); + } + if (!empty($next_post)) { + $post = $next_post; + setup_postdata($post); + get_template_part('template-parts/content', 'card'); + } + + $post = $original_post; + wp_reset_postdata(); + ?> +
+
+ + +