1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 No search bar on index page

Discussion in 'Styling and Customization Questions' started by trman, Jan 13, 2015.

  1. trman

    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.
  2. Amaury

    Amaury Well-Known Member


    #forumList #QuickSearch {
        display: none; }
  3. trman

    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:

    How could I modify that so it just removes it from the forum_list page?
  4. Optic

    Optic Well-Known Member

    Template conditional would work really well here. :)

    In your header template, find:
    <xen:if is="{$canSearch}"><xen:include template="search_bar" /></xen:if>
    and replace with:
    <xen:if is="{$contentTemplate} != 'forum_list'">
         <xen:if is="{$canSearch}"><xen:include template="search_bar" /></xen:if>
    Amaury likes this.
  5. trman

    trman Active Member

    Thanks Optic, that worked great.
    Optic likes this.

Share This Page