Please try this ,
<form name="searchBox" action="<?php echo get_bloginfo('url'); ?>" class="search-form" method="get" role="search" >
<input type="text" name="s" class="searchBox" placeholder="search" value="<?= $_GET['s'] ?>" required />
<button type="submit" class="searchBtn" >search</button>
</form>
Related Posts:
- How can I implement faceted search with WordPress 3.x?
- Is there a wordpress plugin enabling an autocomplete search box, then jump to page?
- Get Adjacent post by search query
- Consistent and Admissible Heuristics
- How do you make Vim unhighlight what you searched for?
- How to search for (partial match) display names of WordPress users?
- How can i move search results onto a specific page?
- Unified search across separate WordPress installations
- How to insert a span inside a search form?
- Extending search query with additional $sentence value
- Search only blog posts (default WP search widget)
- Exclude pages from WordPress search result page
- Disable Redirect to Product Page on Search Results Page in WooCommerce [closed]
- WP User Query with search columns and meta query
- Combining Meta_Query key values for one array
- Search: Only One Result Returned
- How to redirect search result page to post
- Custom Permalinks Break Search Pagination
- Include Author profile in search results
- Adding arg to search results page
- search only pages if on page
- How to add WooCommerce SKU to search query?
- I’m trying to expand the scope of the default WP search algorithm. What am I doing wrong?
- Make Search Function include subdomain (blog.ourwebsite.com)
- How to return HTTP 404 when no search results found?
- Change query variable for wordpress search
- Search Results: Differentiate posts and pages
- How does WordPress know if a URL doesn’t exist?
- Highlight Search Results in Function.php
- More than one search results page template
- How to make a search form?
- Using ElasticSearch on WordPress
- Get PDF in media by ID
- How to restrict wordpress search to pages and disable products listing search?
- WordPress does not find author pages in search
- Show only “Pages” – not posts – on search page
- Search Everything & WP 3.7 update issues [closed]
- remove post edit.php search form and replace with my own
- Creating a Search Array From Multiple Tables
- Installing Solr for dedicated search
- custom wp_dropdown_categories items in wordpress
- How do I make search only search in post content?
- How can i preserve wordpress database encoding after using wp-cli search-replace with –export flag?
- How to sort by columns within a search result without displaying all rows again after sorting
- How to add re-captcha to wordpress search?
- Where should I start looking if I want to implement my own custom search?
- How can I get a traceback on function calls?
- Knowledge base high performance Live Search
- Search buddypress groups with querystring in url
- Limit search to a specific folder in website
- Make search result display 1 Company or 2 Companies
- How do i append UNION SQL Query with default search query
- How to add one more query string with search query string
- Why is this search form not submitting when button is clicked?
- Search within table?
- Search returns everything if search term has a space
- Search by meta_query
- Restrict Search Results to Post Author
- Intelligent Search Filtering
- Changing the ORDER BY in WordPress default search function
- How to search titles/artist/album within a playlist, and only lists the results that match?
- Exclude posts with certain meta data from search results
- Custom search page wont allow URL params
- How to detect if the referer is 404 page?
- Get the search element only on 404
- Included posts on a page searchable
- How to remove notice inside search.php when no results are found?
- Changing search terms results a 403 – dsIDXpress Pro plugin [closed]
- Load search results into a div
- Exclude certain Gutenberg blocks from search results
- search: get minimum number of post for each post type
- WordPress Search function with partial and exact match
- How to search in Elastic by post title/concerpt/content?
- Remove gray header on Search Result page on WordPress
- how to disable autocomplete search on wpLink?
- making a search form and search page in wordpress theme
- Some search results link to main page instead of post
- Adding custom search button to menu
- Use WordPress search in external static website
- Adding thumbnail to search results & changing content.php
- How to show custom post type by either single meta_value or multiple meta_value(s) using WP_Query?
- Insert DIV container below 1st search result
- meta field search too restrictive in pre_get_post() for custom search
- Extend search function with link to searched word
- Search for Author and Custom Post Type
- Search not displaying results
- Search page isn’t returning any results
- I need a custom search page to lead to search.php but it goes to index.php
- how can I make the search return only single random correct result?
- Adding search box for admin on custom admin page
- Different search results with WordPress and Relevanssi
- Attached file how can i work the wp_query to search for related names
- How do I create a search form that searches only within a custom post type?
- Two Querys in one Search – Category-Tag nightmare – HOW?
- Making ACF fields appear in search results
- Code in the excerpt of the search page
- WordPress REST API response – not returning results from custom taxonomy, only from title
- Members location sortable based on UK Postcode
- I had removed my phone number from my website footer, but months later it still appears once I look it up on google, how to remove it?
- search posts by POST ID