Try this and change the classes if needed.
<div id="navbar" class="navbar">
<nav id="site-navigation" class="navigation main-navigation" role="navigation">
<button class="menu-toggle"><?php _e( 'Menu', 'twentythirteen' ); ?></button>
<a class="screen-reader-text skip-link" href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentythirteen' ); ?>"><?php _e( 'Skip to content', 'twentythirteen' ); ?></a>
<?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu', 'menu_id' => 'primary-menu' ) ); ?>
<?php get_search_form(); ?>
</nav><!-- #site-navigation -->
</div><!-- #navbar -->
Related Posts:
- How to use regular page template for search results?
- Return 404 for /search/ queries – For Genesis
- how to limit search to post titles?
- How does WordPress search work behind the scenes?
- Remove some pages from search
- WordPress blog with 30 000 posts: poor search performance
- How do I filter the search results order?
- Link to search page without search parameter
- Search/Replace for editor in HTML-mode
- How to pass a search $_GET parameter to a new custom search page?
- Do I need to sanitize WordPress search query?
- Neither the_excerpt() nor the_content() works properly?
- WordPress 3.6, searchform.php problems
- Add custom parameters to JSON API search query?
- How to stop _wpnonce and _wp_http_referer from appearing in URL
- Return all Tags from search results
- Search results with custom loop don’t update when paged
- Does WP search natively return results sorted by type (post, post type, page, category…)?
- How do I properly redirect outbound links with special characters
- Refine Search Results
- pre_get_posts and search query for admin
- Display Categories in Search Results
- intellisense in wp search
- Sitelinks Search Box in Google and urlencoded search string
- Is it possible to search authors by profile field?
- Search result conditonal tag
- WordPress search issue with searching html tags
- Get search term not on searh results page?
- Alphabetical search
- Search Result from another wordpress website
- Remove WHERE conditions from search query
- Change default search URL slug in wordpress with Custop Post Type as Search target
- Transliterating search term in another language
- How can I remove the search window?
- How to exclude events (custom posts) from search, if the start date has already passed?
- How to conditionally pass a parameter to wordpress search to limit post types?
- Customise search page depending on result
- How do I use a block to display search results?
- How to make search include data from wp_postmeta?
- Change WordPress search Permalink structure
- How to load WP categories into array for autocomplete?
- Custom SQL query on wp_users with the addition of wp_usermeta
- Media searching ignored
- Generate list of tags from search results
- Use created page as search results page and custom template
- Home page shows recent post, serps rank post within homepage
- How do I search dynamically created content?
- Post 2 Post Site Search
- Using search.php without a ‘s’ field in searchform.php
- Search queries don’t seem to work?
- Array_search ignoring the first element [closed]
- Add Icon to Placeholder Text in Search Form
- Unexpected esc_html and esc_attr behaviour
- WordPress search page doesn’t work with either $_GET or $_POST
- Search Results No Link
- Search for two strings in WP search
- Sort search results by Custom Field
- Blog search just returns to front page (not search results!)
- Order search results by category
- Strip HTML Tags From Search Results
- How to build an advanced search form by post type?
- How to insert meta keyword to search result page
- Should I create a parent page with no content? [closed]
- Custom search Dashboard widget
- Why WP_Query’s ‘s’=>’keyword’ searches only for ‘post_title’ and why not ‘post_content’?
- Remove Page Timestamp via functions.php so it doesn’t show in Google Search Result Description [closed]
- Use pre_get_posts to display search results by meta in specific order
- Prevent search query from taking place when using Google CSE?
- Site Title in my Search URL
- I want empty search returns to home page in my wordpress
- Prevent searches less than 4 characters
- Search wordpress using three different drop down menus
- How to get search result as image rather than page
- Search results – 404 error after hitting enter
- Redirect wordpress search query if its a tag
- Is it possible to show subdomain posts in main domain search result?
- Replacing word in wordpress Search not working Properly
- How to add search box to table results in admin page [closed]
- How might I go about using the API to search for a user by email, but ensuring that it is an exact match?
- Add CPT to search results with pre_get_posts
- Replacing wordpress search with custom code
- Change output URL Search module
- How to show custom post type by either single meta_value or multiple meta_value(s) using WP_Query?
- search for single meta_key with numeric array of meta values
- How to customize default wordpress search query
- Customizing Google’s Search box in WordPress [closed]
- I’ve messed up the admin search functionality. Help!
- Content instead Excerpt on term
- Need help setting up a search form for wordpress [duplicate]
- Custom search results page not showing excerpt
- Search page isn’t returning any results
- Error when searching without any results
- Listing parent section in search results
- Search results: How to add direct jump to anchor?
- Limit search to posts and pages
- Adding attributes to the core search block form
- How make Autocomplete with wp_query in post_type attachment
- WordPress Search – Reject partial matches
- Wp query search built out of 4 terms?
- Ivory Search error