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

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

Dylan V

Well-known member
#1
Hi,

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

Screenshot_1.png

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

Screenshot_2.png

I would like to just that no pop-up opens (just a simple search bar).
 

Dylan V

Well-known member
#5
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>
 

Jallah

New member
#6
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 :)