XF 1.4 No search bar on index page

trman

Active member
I would like to hide the search bar on the index (forum list) page only, but leave it in place for the rest of the pages.
 

trman

Active member
Thanks but that did not work.

The below will remove it from all pages, but I just want to remove it from the forum_list page:

Code:
#searchBar
{
display:none;
}
How could I modify that so it just removes it from the forum_list page?
 

Optic

Well-known member
Template conditional would work really well here. :)

In your header template, find:
Code:
<xen:if is="{$canSearch}"><xen:include template="search_bar" /></xen:if>
and replace with:
Code:
<xen:if is="{$contentTemplate} != 'forum_list'">
     <xen:if is="{$canSearch}"><xen:include template="search_bar" /></xen:if>
</xen:if>
 
Top