php - correct search expression for bbpress
Posted
by billn
on Stack Overflow
See other posts from Stack Overflow
or by billn
Published on 2010-04-30T15:21:13Z
Indexed on
2010/05/02
12:27 UTC
Read the original article
Hit count: 382
I have a very purdy styled search box in my wordpress install, and looking for continuity I want the same for my bbpress forum - currently I'm failing.
For WP I have:
<div id="search">
<form action="<?php bloginfo('home') ?>" method="get">
<div class="hiddenFields"></div>
<p><input name="s" id="s" maxlength="100" size="18" /><input class="submit" id="submit-button" type="submit" value="submit" /></p></form>
</div>
For bbPress The form 'method="get">' gets kicked out and of-course I need another expression. bbpress generally seems to use:
<div class="search"><?php search_form(); ?></div>
This wrecks everything - I get no styling attributes at all other than position... I can make it look fine (and consistent) with by removing the - but then it's obviously just a dummy with no search - any ideas to fix the latter? Thanks
<div id="search">
<div class="hiddenFields"></div>
<p><input name="s" id="s" maxlength="100" size="18" /><input class="submit" id="submit-button" type="submit" value="submit" /></p>
</div>
© Stack Overflow or respective owner