From fc2a4cf91764afc1983398b2571ec3cda7e5e22d Mon Sep 17 00:00:00 2001 From: TeshuKatepalli Date: Mon, 11 Dec 2023 11:58:32 +0530 Subject: [PATCH] Footer issue fixed --- blocks/header/header.js | 2 +- styles/template.css | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/blocks/header/header.js b/blocks/header/header.js index b3000b71..1cff63eb 100644 --- a/blocks/header/header.js +++ b/blocks/header/header.js @@ -198,7 +198,7 @@ function addClassesToMenuItems(element, depth) { if (parentElement.tagName.toLowerCase() === 'strong') { link.setAttribute('target', '_blank'); } - if (link && link.href === window.location.pathname) { + if (link && link.pathname === window.location.pathname) { item.classList.add('active'); } const childElement = item.querySelector('ul'); diff --git a/styles/template.css b/styles/template.css index 50ef5982..73e5dc3c 100644 --- a/styles/template.css +++ b/styles/template.css @@ -659,10 +659,6 @@ body.sidebar-50 #sidebar { padding: 0 } -#footer-orange li.hs-menu-depth-1.menu-num-1,#footer-orange li.hs-menu-depth-1:first-child { - display: none!important -} - #footer-orange li { padding: 0 }