XF 1.x FA+ How do I remove navtab forums from offcanvas menu?

Russ

Pixel Exit Staff
You'll need to edit the template:

xb_offcanvas_menu

Comment out:

Code:
       <!-- forums -->
       <xen:if is="{$tabs.forums}">
           <li class="navTab forums {xen:if $tabs.forums.selected, 'selected'}">
               <a href="{$tabs.forums.href}" class="navLink">{$tabs.forums.title}</a>
                   <div class="xbOffCanvasSubMenu">
                   <ul>
                   <xen:hook name="navigation_tabs_forums">
                       <xen:if is="{$visitor.user_id}"><li><a href="{xen:link 'forums/-/mark-read', $forum, 'date={$serverTime}'}" class="OverlayTrigger">{xen:phrase mark_forums_read}</a></li></xen:if>
                       <xen:if is="{$canSearch}"><li><a href="{xen:link search, '', 'type=post'}">{xen:phrase search_forums}</a></li></xen:if>
                       <xen:if is="{$visitor.user_id}">
                           <li><a href="{xen:link 'watched/forums'}">{xen:phrase watched_forums}</a></li>
                           <li><a href="{xen:link 'watched/threads'}">{xen:phrase watched_threads}</a></li>
                       </xen:if>
                       <li><a href="{xen:link 'find-new/posts'}" rel="nofollow">{xen:if $visitor.user_id, {xen:phrase new_posts}, {xen:phrase recent_posts}}</a></li>
                   </xen:hook>
                   </ul>
                   </div>
           </li>
       </xen:if>
wrap it in <xen:comment> </xen:comment> or just delete it.
 

Alfa1

Well-Known Member
That worked. I wonder: is it not possible to deny this conditional:
<xen:if is="{$tabs.forums}">
 

Russ

Pixel Exit Staff
That worked. I wonder: is it not possible to deny this conditional:
<xen:if is="{$tabs.forums}">
Not sure I follow, commenting / deleting the code I referenced would stop that code from being loaded.
 

Alfa1

Well-Known Member
Yes, this works. I may be misunderstanding that code. It seems like a conditional to only show the forum navtab if the conditional is true. Which is why I asked if it is possible to set it to false somewhere.
 

Pre-Sale Questions

If you have any questions or concerns you want to ask before you make a purchase don't hesitate to use one of our multiple support channels for your convenience.