Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Search form in op navigation bar #59

PedroDK opened this Issue · 2 comments

3 participants


Hi Rachel Baker,

I have just discovered your great BootstrapWP theme and I think it is very well done.

Is there a way to place a search form into the top navigation bar, as I have seen it one on other Bootstrap WP themes?

Thank you!



Right now the styles are there for the navigation search form, but there isn't a widget area declared.

I did not get this request into v.90, but will try to get it into the next release.



I'm new to Wordpress and bootstrapwp.
I find this is the perfect starter Theme. Thanks Rachel !!!

@Predro, try this:

<?php querystring = esc_attr(apply_filters('the_search_query', get_search_query()));?>

This works fine for me! ;-)
Hmm...My Code is cutted by the commentbox! I don't know why!

Apply this to your form

class="navbar-search pull-right" method="get" action="<?php bloginfo('url') ?>"

And this:

type="text" class="search-query" name="s" id="s" value="<?php echo $querystring;?>" placeholder="Search"

to the input of the form!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.