XF 1.4 No search bar on index page

trman

Active member
#1
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
#3
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
#4
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