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

how to add another searchbox

Discussion in 'XenForo Questions and Support' started by swatme, Dec 12, 2011.

  1. swatme

    swatme Well-Known Member


    i want to add another search box at the bottom of the page.
    what specific codes should i paste in the footer?

  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Admin CP -> Appearance -> Templates -> footer

    Add the red code near the top:

    <xen:edithint template="footer.css" />
    <xen:hook name="footer">
    <div class="footer">
    	<xen:if is="{$canSearch}"><xen:include template="search_bar" /></xen:if>
    	<div class="pageWidth">
    		<div class="pageContent">
    			<xen:if is="{$canChangeStyle} OR {$canChangeLanguage}">
    			<dl class="choosers">
    				<xen:if is="{$canChangeStyle}">
    					<dt>{xen:phrase style}</dt>
    					<dd><a href="{xen:link 'misc/style', '', 'redirect={$requestPaths.requestUri}'}" class="OverlayTrigger Tooltip" title="{xen:phrase style_chooser}" rel="nofollow">{$visitorStyle.title}</a></dd>
    				<xen:if is="{$canChangeLanguage}">
    					<dt>{xen:phrase language}</dt>
    					<dd><a href="{xen:link 'misc/language', '', 'redirect={$requestPaths.requestUri}'}" class="OverlayTrigger Tooltip" title="{xen:phrase language_chooser}" rel="nofollow">{$visitorLanguage.title}</a></dd>
    However, you lose the popup menu in this location. The positioning is also a little off. Some custom styling is required to get it looking right in this new location.
    swatme likes this.
  3. swatme

    swatme Well-Known Member

    thanks jake.

    i just noticed if you have 2 searchbars one searchbar will almost disabled its drop down menu.

    what i really want is to have a quick search box (no dropdown) and will search within its category
    the searchbox is executed.

Share This Page