From 844951b2682858bb9efac76536c6d695da5cc841 Mon Sep 17 00:00:00 2001 From: peptiderepo <273788462+peptiderepo@users.noreply.github.com> Date: Wed, 29 Apr 2026 14:35:03 +0700 Subject: [PATCH] feat(front-page): remove Science Feed card + 3-item news teaser (v2.2.2) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Merges PR #55. Science Feed removed from module grid (5 cards). Inline news feed replaced with 3-item teaser + CTA. Version 2.2.1 → 2.2.2. --- CHANGELOG.md | 13 +++++++++++++ front-page.php | 22 +++++++++++++--------- functions.php | 2 +- style.css | 2 +- template-parts/module-cards.php | 11 ++--------- 5 files changed, 30 insertions(+), 20 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 88fb9c5..592916e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Peptide Starter Theme - Changelog +## [2.2.2] - 2026-04-29 — Front page layout restructure + +### Changed + +- `template-parts/module-cards.php`: Removed Science Feed from the module card + grid. The grid is for interactive tools only; news is content. Grid is now + 5 cards: Peptides, Calculator, Protocol Builder, Tracker, Subject Log. No card + in this set goes inactive-dimmed due to a plugin registration check. +- `front-page.php`: Replaced the full `[peptide_news]` inline feed with a + 3-item teaser row (`[peptide_news count="3"]`) and a "View all research →" + CTA linking to `/news`. Reduces page weight and drives traffic to the + dedicated news page. + ## [2.2.1] - 2026-04-29 — RCT inline abbreviation tooltip ### Added diff --git a/front-page.php b/front-page.php index ffcfc31..d76c73d 100644 --- a/front-page.php +++ b/front-page.php @@ -204,7 +204,7 @@ $featured_monograph_ids = array( 211, 36, 177 ); - + @@ -214,19 +214,22 @@ $featured_monograph_ids = array( 211, 36, 177 ); } ?> - + -
+
-
-

-

- -

+
+
+

+

+
+ + +
- +
+ diff --git a/functions.php b/functions.php index c594ecb..a1d9815 100644 --- a/functions.php +++ b/functions.php @@ -26,7 +26,7 @@ if ( ! defined( 'ABSPATH' ) ) { } // Theme constants. -define( 'PEPTIDE_STARTER_VERSION', '2.2.1' ); +define( 'PEPTIDE_STARTER_VERSION', '2.2.2' ); define( 'PEPTIDE_STARTER_DIR', get_template_directory() ); define( 'PEPTIDE_STARTER_URI', get_template_directory_uri() ); diff --git a/style.css b/style.css index f34cfec..b7afc15 100644 --- a/style.css +++ b/style.css @@ -4,7 +4,7 @@ Theme URI: https://github.com/peptiderepo/peptide-starter Description: Premium, accessible WordPress theme for scientific peptide reference database Author: Peptide Repo Author URI: https://peptiderepo.com -Version: 2.2.1 +Version: 2.2.2 License: GPL v2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Text Domain: peptide-starter diff --git a/template-parts/module-cards.php b/template-parts/module-cards.php index 0acb329..83d1482 100644 --- a/template-parts/module-cards.php +++ b/template-parts/module-cards.php @@ -2,7 +2,7 @@ /** * Template Part: Research Module Cards * - * Renders a 6-card grid of research modules (tools/sections) for the front page. + * Renders a 5-card grid of research modules (tools/sections) for the front page. * Each card checks if the target plugin is active; inactive cards are dimmed. * Cards with 'coming_soon' => true display a "Coming soon" badge overlaid in * the top-right corner — layered on top of the --inactive visual treatment. @@ -58,14 +58,6 @@ $modules = array( 'available' => shortcode_exists( 'peptide_tracker' ), 'coming_soon' => true, ), - array( - 'title' => __( 'Science Feed', 'peptide-starter' ), - 'description' => __( 'What\'s new in peptide research. Filtered for what matters, weekly.', 'peptide-starter' ), - 'url' => '/news', - 'icon' => '', - 'available' => shortcode_exists( 'peptide_news' ), - 'coming_soon' => false, - ), array( 'title' => __( 'Subject Log', 'peptide-starter' ), 'description' => __( 'Track outcomes over time. Subjective markers, lab results, protocol changes — your own data, kept private.', 'peptide-starter' ), @@ -109,3 +101,4 @@ $modules = array(
+