removes unwanted menuitem from Collections page

This commit is contained in:
buttle 2021-05-24 19:10:27 +02:00
parent e84517776d
commit f5d6b888ac
1 changed files with 7 additions and 0 deletions

View File

@ -20,6 +20,13 @@ $layoutAttributes = [
<?php $hasChildren = $page->hasPages() ?>
<?php $showChildren = $this->themeSetting('nav_show_levels'); ?>
<?php if (!$hasChildren || ($showChildren == 0)): ?>
<?php
$substring = "collections";
$length = strlen($substring);
if ( substr_compare($page->getHref(), $substring, -$length) === 0 ) {
continue;
}
?>
<li<?php if ($page->isActive()) echo ' class="active"' ?>>
<a
class="nav-header"