• 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

swatme

Well-known member
#1
hi

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

thanks
 

Jake Bunce

XenForo moderator
Staff member
#2
Admin CP -> Appearance -> Templates -> footer

Add the red code near the top:

Code:
<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>
				<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>
				</xen:if>
			</dl>
			</xen:if>
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

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