removes unwanted menuitem from Collections page
This commit is contained in:
parent
e84517776d
commit
f5d6b888ac
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue