Corregir Top Notification Bar según template fuente real
PROBLEMA:
- Implementación previa NO coincidía con template fuente apus-theme-template/index.html
- HTML tenía estructura compleja con spans responsive e i18n
- CSS cargaba archivo separado notification-bar.css (253 líneas) con animaciones innecesarias
- Faltaban variables de color APU en style.css
SOLUCIÓN:
1. header.php (líneas 23-32):
- Reemplazado HTML complejo con estructura simple del template
- Eliminado texto responsive innecesario
- Cambiado de múltiples <span> a un solo <span><strong>Nuevo:</strong> texto</span>
- Agregado clases text-white y text-decoration-underline al enlace
2. assets/css/style.css:
- Agregadas variables de color APU (líneas 49-55):
--color-navy-dark, --color-navy-primary, --color-orange-primary, etc.
- Agregado CSS de Top Notification Bar (líneas 658-685)
- Solo 28 líneas de CSS limpio sin animaciones ni JavaScript
3. inc/enqueue-scripts.php:
- Comentada función apus_enqueue_notification_bar_assets()
- CSS ahora en style.css principal, no en archivo separado
- Componente no requiere JavaScript
FUENTE DE VERDAD:
- apus-theme-template/index.html (líneas 55-63)
- apus-theme-template/css/style.css (líneas 57-80)
ISSUE: #97
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -475,7 +475,12 @@ add_action('wp_enqueue_scripts', 'apus_enqueue_cta_box_sidebar_assets', 17);
|
||||
|
||||
/**
|
||||
* Enqueue Top Notification Bar styles and scripts (Issue #39)
|
||||
*
|
||||
* DESHABILITADO: CSS ahora está en assets/css/style.css (líneas 658-685)
|
||||
* siguiendo el template fuente apus-theme-template/index.html
|
||||
* El componente no requiere JavaScript, es solo HTML/CSS estático.
|
||||
*/
|
||||
/*
|
||||
function apus_enqueue_notification_bar_assets() {
|
||||
// Notification Bar CSS
|
||||
wp_enqueue_style(
|
||||
@@ -500,6 +505,7 @@ function apus_enqueue_notification_bar_assets() {
|
||||
}
|
||||
|
||||
add_action('wp_enqueue_scripts', 'apus_enqueue_notification_bar_assets', 18);
|
||||
*/
|
||||
|
||||
/**
|
||||
* Enqueue Footer Contact Form styles and scripts (Issue #37)
|
||||
|
||||
Reference in New Issue
Block a user