Bookmark/Search this post with:
Saturday, June 9, 2007
We got an email today saying:
your search tab is bitchen’. how did you do it? Is there a mod?
I thought it might make a good quick article to explain how we’re doing the (bitchin’) search box on the new Lullabot site.
First off, the basis of this site is the Zengine theme engine, which basically just adds a bunch of default templates and variables to the PHPTemplate theme engine. The page.zen.php that we’re using in the Lullabot theme is only a slightly modified version of the original page.zen.php included with Zengine (which you can see here).
I’ve moved the <?php print $search_box; ?> before the <div id=”logo-title”> and used some CSS to position it absolutely flush against the top of the page. The simplified version of the CSS looks a bit like this: