From 42dd155904142df8d2e5b0e94c587465de500449 Mon Sep 17 00:00:00 2001 From: Lars Gebhardt-Kusche Date: Mon, 27 Apr 2026 01:10:43 +0200 Subject: [PATCH] asdasd --- src/App/functions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/App/functions.php b/src/App/functions.php index d0cbb80..e667608 100644 --- a/src/App/functions.php +++ b/src/App/functions.php @@ -400,8 +400,9 @@ function module_shell_header(string $module, array $options = []): string if ($title !== '') { $moduleTitle = trim((string) ($design['title'] ?? ucfirst($module))); + $selector = '.home-hero[data-module-name="' . $module . '"] .brand-copy h1'; $script = '(function(){' - . 'var root=document.querySelector(".home-hero[data-module-name=' . json_encode($module, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES) . '] .brand-copy h1");' + . 'var root=document.querySelector(' . json_encode($selector, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES) . ');' . 'if(!root){return;}' . 'var old=root.querySelector(".module-page-context");' . 'if(old){old.remove();}'