No conditional for that. I think the best approach would be a two part edit, page_container find:
Code:
<xf:foreach loop="$navTree" key="$navSection" value="$navEntry" i="$i" if="{{ $navSection != $xf.app.defaultNavigationId }}">
<li>
Change the <li> to this:
Code:
<li class="nav{$navSection}">
This will give the parent level of the navigation items a class so you can hide them using css:
View attachment 191662
Your css in extra.less:
Code:
.p-nav-list li.navmembers { display: none; }
This will hide the link in the main navigation but not in the off-canvas menu.