From 18522a01ee7fbf1071b07d078cc303593499059a Mon Sep 17 00:00:00 2001 From: rafa Date: Sun, 3 May 2026 18:48:59 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20portada=20WP=20=E2=80=94=20slider,=20h2?= =?UTF-8?q?=20Portada,=20separadores=20y=20tipograf=C3=ADa=20secciones?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Ocultar .n2-ss-slide--focus (nombres de fichero SS3 visibles) - Ocultar .wp-block-post-title en todas las portadas (antes solo FR/IT/PT/EN) - Aumentar separación entre secciones: 3rem→4.5rem + padding-top - Rediseñar .fea-section-title: más grande (0.72→0.85rem), más oscuro, borde izquierdo carmesí para jerarquía visual Closes #10 #11 #15 #16 Co-Authored-By: Claude Sonnet 4.6 --- wordpress/wp-content/mu-plugins/fea-homepage.php | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/wordpress/wp-content/mu-plugins/fea-homepage.php b/wordpress/wp-content/mu-plugins/fea-homepage.php index e2df026..e52846a 100644 --- a/wordpress/wp-content/mu-plugins/fea-homepage.php +++ b/wordpress/wp-content/mu-plugins/fea-homepage.php @@ -410,14 +410,16 @@ add_action('wp_head', function() { .fea-hero-title { font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 700; line-height: 1.2; margin: 0 0 0.75rem; color: #111; } .fea-hero-meta { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: #666; } - .fea-section { margin-bottom: 3rem; } - .fea-section-title { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #888; margin: 0 0 1.25rem; padding-bottom: 0.5rem; border-bottom: 1px solid #e0e0e0; } + .fea-section { margin-bottom: 4.5rem; padding-top: 0.5rem; } + .fea-section-title { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #333; margin: 0 0 1.5rem; padding: 0.4rem 0 0.55rem 0.8rem; border-left: 3px solid #8b1a2e; border-bottom: 1px solid #e0e0e0; } .fea-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } @media (max-width: 720px) { .fea-grid { grid-template-columns: 1fr 1fr; } } @media (max-width: 480px) { .fea-grid { grid-template-columns: 1fr; } } .fea-card { border-bottom: 1px solid #e5e5e5; padding-bottom: 1.1rem; } + /* Ocultar visualmente el texto de accesibilidad del Smart Slider (nombres de fichero con guiones bajos) */ + .n2-ss-slide--focus { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; } .fea-card-meta { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.4rem; } .fea-avatar { border-radius: 50%; width: 28px !important; height: 28px !important; flex-shrink: 0; display: inline-block !important; } .fea-card-author { font-size: 0.78rem; font-weight: 600; color: #555; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } @@ -429,13 +431,9 @@ add_action('wp_head', function() { }); -// ── Ocultar título de página en portadas traducidas ─────────────────────── -// La portada ES usa plantilla-portada que ya oculta el título. -// Las portadas FR/IT/PT/EN usan la plantilla default que sí lo muestra. +// ── Ocultar título de página en todas las portadas ──────────────────────── add_action('wp_head', function() { - $id = get_queried_object_id(); - $translated_ids = [42756, 42757, 42758, 43889]; // FR, IT, PT, EN - if (!$id || !in_array($id, $translated_ids, true)) return; + if (!fea_is_front_page()) return; echo ''; }, 20);