Jump to content
Sign in to follow this  
wachtler

Adding search bar to header

Recommended Posts

wachtler

I would like to add a search bar to the top-right of every page inside of the header. http://173.254.9.151/ I figured I could put a search bar in a universal sidebar, which I dropped into the header. Now I just need the CSS to align it to the top right. Thanks!

Share this post


Link to post
Share on other sites
ricardo

You could try absolute positioning but I wouldn't advise it... too many divs and code to interfere. IMHO, the best option is a custom html snippet added to the header via a hook. You can copy the search form from the html source, and add a hook with it to functions.php... there's a few hooks available in that area so try till you find the one that suits you best. Ricardo

Share this post


Link to post
Share on other sites
wachtler

Thanks this worked well.

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  

×