Jump to content
Sign in to follow this  
cirrusdesign

Search Bar

Recommended Posts

cirrusdesign

Is it possible to relocate the search bar. My nav bar is made of a custom menu and there is no room for the search bar...but I would like it in the primary sidebar on the left...does anyone know how to do this? patrick..

Share this post


Link to post
Share on other sites
Guest Guest

The easiest way would be to disable search in the nav (if you haven't already done so) and paste the same call that the nav uses into a text widget:

<form method="get" class="searchform" action="http://www.yoursite.com" onsubmit="this.submit();return false;"><fieldset> <input type="text" value="Search" name="s" class="searchfield" onfocus="if (this.value == 'Search') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Search';}" /><input type="image" class="submit btn" name="submit" src="http://www.yoursite.com/platformpro/wp-content/themes/platformpro/images/search-btn.png" alt="Go" /></fieldset></form>

Replace yoursite in the code with your url obviously.

Share this post


Link to post
Share on other sites
bonngean

OR... Go inside widgets and select the Search widget, and add it to the primary sidebar, which is what I did -- and I didn't have to add all that code above. :) --Bonnie P.S. There is a video in the Pagelines doc area that shows you how to remove the default search from the functions.php file.

Share this post


Link to post
Share on other sites
cirrusdesign

Thanks Bonnie, i figured this out 47 secs after i posted this duh! But thanks for responding....

Share this post


Link to post
Share on other sites
cirrusdesign

Thanks tyler...i found another way without the code...but I appreciate your post

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×