From 222348d544138ce311463fe86a52e2068c391a92 Mon Sep 17 00:00:00 2001 From: Malin Date: Tue, 19 May 2026 20:07:03 +0200 Subject: [PATCH] fix: move homepage hero CSS into MU-plugin for git tracking - Hide .entry-hero.page-hero-section on homepage (Kadence renders it even when _kadence_post_layout title:hide is set) - Remove 5rem content-area gap above first block on homepage - .acrib-hero min-height 100svh/100vh (full viewport, transparent header) - Hero inner container flex-centred with 100px top padding for nav clearance - Injected via wp_head (priority 5) so it loads before any theme CSS --- wp-content/mu-plugins/acrib-core.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/wp-content/mu-plugins/acrib-core.php b/wp-content/mu-plugins/acrib-core.php index 762cbf0..9402bfe 100644 --- a/wp-content/mu-plugins/acrib-core.php +++ b/wp-content/mu-plugins/acrib-core.php @@ -66,3 +66,19 @@ remove_filter('wp_mail', 'wp_staticize_emoji_for_email'); if (!defined('WP_POST_REVISIONS')) { define('WP_POST_REVISIONS', 3); } + +// --- Homepage: inject critical CSS to hide Kadence blank title section --- +// This overrides what's also in Additional CSS so it's version-controlled here. +add_action('wp_head', function () { + if (!is_front_page()) return; + echo '' . "\n"; +}, 5);