XF 1.4 It is possible to remove the pop-up for the search bar?

Dylan V

Well-known member
Hi,

It is possible to remove the pop-up for the search bar? I want that this pop-up:

Screenshot_1.webp

no longer appears, but I would like it to be like this:

Screenshot_2.webp

I would like to just that no pop-up opens (just a simple search bar).
 
If you want to do that, replace "search_bar" template with:
Code:
<xen:edithint template="search_bar.css" />

<div id="searchBar" class="pageWidth">
    <xen:hook name="quick_search">
    <span id="QuickSearchPlaceholder" title="{xen:phrase search}">{xen:phrase search}</span>
    <fieldset id="QuickSearch">
        <form action="{xen:link 'search/search'}" method="post">
            <div class="primaryControls">
                <!-- block: primaryControls -->
                <input name="keywords" value="" class="textCtrl" placeholder="{xen:phrase search}..." results="0" title="{xen:phrase enter_your_search_and_hit_enter}" id="QuickSearchQuery" />              
                <!-- end block: primaryControls -->
            </div>
          
            <input type="hidden" name="_xfToken" value="{$visitor.csrf_token_page}" />
        </form>  
    </fieldset>
    </xen:hook>
</div>
 
If you want to do that, replace "search_bar" template with:
Code:
<xen:edithint template="search_bar.css" />

<div id="searchBar" class="pageWidth">
    <xen:hook name="quick_search">
    <span id="QuickSearchPlaceholder" title="{xen:phrase search}">{xen:phrase search}</span>
    <fieldset id="QuickSearch">
        <form action="{xen:link 'search/search'}" method="post">
            <div class="primaryControls">
                <!-- block: primaryControls -->
                <input name="keywords" value="" class="textCtrl" placeholder="{xen:phrase search}..." results="0" title="{xen:phrase enter_your_search_and_hit_enter}" id="QuickSearchQuery" />             
                <!-- end block: primaryControls -->
            </div>
         
            <input type="hidden" name="_xfToken" value="{$visitor.csrf_token_page}" />
        </form> 
    </fieldset>
    </xen:hook>
</div>
Thanks Dylan :)
 
Top Bottom