diff --git a/header.php b/header.php index c4a4a70..701cf9f 100644 --- a/header.php +++ b/header.php @@ -19,10 +19,10 @@ -

' . __('Maintenance Mode', 'tofino') . ' ' . get_field('maintenance_mode_text', 'general-options') . '

'; if (!isset($_COOKIE['tofino_maintenance_alert_dismissed'])) { - echo '

' . __('Maintenance Mode', 'tofino') . '

' . get_field('maintenance_mode_text', 'general-options') . '

'; + echo '

' . __('Maintenance Mode', 'tofino') . '

' . get_field('maintenance_mode_text', 'general-options') . '

'; } } } diff --git a/inc/lib/vite.php b/inc/lib/vite.php index 28fd416..608046b 100644 --- a/inc/lib/vite.php +++ b/inc/lib/vite.php @@ -99,8 +99,8 @@ private static function cssTag(string $entry): string $tags = ''; foreach (self::cssUrls($entry) as $url) { - wp_register_style("tofino/$entry", $url); - wp_enqueue_style("tofino/$entry", $url); + wp_register_style("tofino-" . sanitize_title($entry), $url); + wp_enqueue_style("tofino-" . sanitize_title($entry), $url); } return $tags;