Use <label>
tag before <input>
like this.
<label>Email Adress:
<input type="text">
</label>
This is a simple method to do this. You can simply omit the use of the submit button if you don’t need it to show.
Here is the modified code of yours.
<div id="psform">
<?php $search_text = "Search"; ?>
<form method="get" id="searchform" action="<?php echo home_url(); ?>">
<label>Email Adress:
<input type="text" value="<?php echo $search_text; ?>" name="s" />
</label>
</form>
</div>
Edit:
If you want to add a title to the search form, you can use any heading tag. If you need any other help, please don’t hesitate to ask.
Related Posts:
- Display search results within the same page
- How to insert a span inside a search form?
- Why is there a class=”screen-reader-text” on my search button?
- How to make a search form?
- how to create search and filter form generating “plus” symbols in url in between category names?
- How to load WP categories into array for autocomplete?
- Risk of sql injection for custom search form
- meta_query issue with multiple numerics
- Why is this search form not submitting when button is clicked?
- Why should we use the name attribute with the value “s” in the creation of the search form?
- How to have multiple instances of the same taxonomy in a search form
- Page 2 of Search Results shows homepage
- Form for search pages by meta datas
- WordPress search with more input fields?
- Editing a Search Form
- How do i get The dropdown to have the value of the sub cat and custom fields
- Create a custom and powerful search form
- search form display no result
- How To Change Url Doing Some Changes in Search Form
- Search Results with googlemaps
- Adding attributes to the core search block form
- How can I implement a location based (zip code) search in WordPress?
- How to highlight search terms without plugin
- Complex Search functionality. Advice needed
- How to use next_post_link and previous_post_link on single posts in search results
- can’t limit search to only pages
- Include custom table into search results
- How to exclude post body from WP search
- Search outside of the “loop”
- Replace URL with Site Title in Search Results
- Force WP to use a certain search template
- Modifying searchform.php and search.php to have two kinds of searches
- Do not allow to search certain words
- Display title for search engine visitors
- How to avoid the specific page while searching in WordPress without plugin?
- Best way to Integrate Google Search?
- How to add additional search terms (e.g. synonyms) to the search?
- Combine internal search with Google custom search?
- Any reason why search result lists only one entry?
- Display just child pages of a certain page in search results
- How to make wordpress default search to woocommerce search
- pre_get_posts action: Search by post_title and post_content with different search phrase in the same query
- Why won’t is_search work inside functions.php?
- Search functionality – include date, category and author search
- WordPress Search matching hyphenated words
- How to stop WordPress Search form from searching only in current page?
- How can I make a search form that can search taxonomies and posts?
- How can I include author (their archive page) in search results?
- How to search media library alt text and title fields
- Meta query: How do I return posts within a date period from a given month?
- Creating a Searchable PDF Archive of Publications
- Display post titles that match string in post content
- Search – Only search for post meta field
- Search Form Based On Tutorial Not Working
- how to show Author information in search results
- Sitelinks Search box schema confusion
- Display Search Results after search 1st link
- Make archive page show up in search results?
- WordPress custom search by post type
- WP_User_Query not searching
- meta post search
- “Revision” records in wp_posts have original post type instead of “revision”
- Search engine for WP as CMS [closed]
- Why does this search.php not work?
- Breadcrumbs: Search result not displayed when static page is on top
- Can’t place two custom post types into the WordPress search query?
- Replacement search plugin that reads widgets or catalogs entire page?
- Rewrite wp function
- WordPress custom search only works from some pages
- WordPress search – Display the paragraph which has the searched word/term
- Search within the current page
- How to exclude specific post_type from default search?
- Search issue on special Character
- Modify main search form to search user too
- Removing &submit=Search from search parameters?
- customize search result in wordpress
- Highlight search words in excerpt
- $_GET value is losing it’s space
- limit the number of searches
- Search For Custom Post Type and Custom Fields
- How can I prevent the Search Results Page from changing title?
- Searching on my blog is not working
- WP search in metadata post
- “Modular/reusable” content and search results
- Make the title and […] clickable in result search
- Add Search Form to Dropdown menu
- Search doesn’t work with ‘relation’ => ‘OR’
- Add meta tag to search results
- Searchform for searching specific categories
- Selectbox and Searchform and Custom Search Page
- Hightlight search-terms with functions does remove or disable other filters?
- wp_redirect and search engine bots
- SQL: Search query to get attachments only of those parents which are published
- Change the text “search result for” on search result page
- Search redirects to index
- Want to creat a search for my wordpress theme [closed]
- Return 404 for /search/ queries – For Genesis
- Deprecating WordPress URL from Google, promoting custom domain [closed]
- Search with multiple selects that include tags
- Search results from a specific database table