Skip children of page in navigation

In addition to checking if the page has children, also check if it uses a particular template, in this case probably “testimonials”.

<?php e($item->hasChildren() && $item->intendedTemplate() != 'testimonials', ' dropdown')?>
1 Like