trman Active member Jan 13, 2015 #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.
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.
Amaury Well-known member Jan 13, 2015 #2 Try: Code: #forumList #QuickSearch { display: none; } Upvote 0 Downvote
trman Active member Jan 13, 2015 #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? Upvote 0 Downvote
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 Jan 13, 2015 #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> Upvote 0 Downvote
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>