Page 1 of 1

Search Bar In Header

Posted: Thu May 12, 2022 4:02 pm
by WineMan
I am using made's version of the Leggero theme and wondered how I could move the Search bar from the right panel to the header. If so, how is it done?

Re: Search Bar In Header

Posted: Thu May 12, 2022 4:16 pm
by Madekozu
Unfortunately, the Leggero V2 only has the right bar for widgets. My "version" is just a style for the Leggero.

To get a search field in the header, you would have to add it to the template /fp-interface/themes/leggero/header.tpl. I haven't tried it myself yet and I'm sure you'll have to adjust it a bit (div id etc), but something like this has to go in there:

Code: Select all

<!DOCTYPE html>
<html xmlns="" lang="{$fp_config.locale.lang}">
	<meta http-equiv="Content-Type" content="text/html; charset={$flatpress.charset}" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<link href=',700italic,400,700' rel='stylesheet' type='text/css'/>

	{action hook=wp_head}

	<div id="body-container">

		<div id="head">
						<div class ="alignright" id="widget-searchbox">
		<form method="get" action="/search.php">
		<input type="hidden" name="stype" value="full"><p><input type="text" name="q"></p>		
			<h1><a href="{$smarty.const.BLOG_BASEURL}">{$flatpress.title}</a></h1>
			<p class="subtitle">{$flatpress.subtitle}</p>
		</div> <!-- end of #head -->

	<div id="outer-container">

Re: Search Bar In Header

Posted: Thu May 12, 2022 4:42 pm
by WineMan
Thanks...I will play around with it to see if I can get it to look the way I want.