From fd2f25e53a6601e203aac530e83676f501473ca4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dersim=20=C3=96zdag?= Date: Tue, 21 Nov 2023 18:40:11 +0100 Subject: [PATCH] Update header-personal.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CSS-Class um beispielsweise den body mit overflow-y: hide auzustatten, wenn das mobile menü geöffnet ist --- template-parts/header-personal.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/template-parts/header-personal.php b/template-parts/header-personal.php index 31da4fb8..221d03e4 100644 --- a/template-parts/header-personal.php +++ b/template-parts/header-personal.php @@ -54,10 +54,12 @@ if(jQuery('.navbar-toggler').hasClass('collapsed')){ window.setTimeout(() => { jQuery('.navbar > .container').add('nowrap'); + jQuery('body').removeClass('navbar-open'); }, 100); }else{ jQuery('.navbar > .container').removeClass('nowrap'); - } + jQuery('body').addClass('navbar-open'); + } }) })