I searched through all the files in the theme for the word “search” and tried removing that command from
entry.php
andentry-summary.php
. None of that had an effect. I also tried removing thesearch.php
file, that had no effect.
To save you grief, any edits to the core files provided by WordPress will potentially break your website if you modify it incorrectly. Also with each new update provided by WordPress, it will overwrite and re-add the files to their default/updated state.
To hide the search, add the following to your child theme’s function.php
:
add_action( 'wp_before_admin_bar_render', 'wpse_254662_toolbar', 10, 1 );
function wpse_254662_toolbar() {
# Hide search from admin toolbar
global $wp_admin_bar;
$wp_admin_bar -> remove_menu( 'search' );
}
Related Posts:
- Search is always exact [closed]
- Empty search returns home page, how to return not found search page?
- How to make search include data from wp_postmeta?
- How to look at code in WordPress repositories without downloading?
- Display search results within the same page
- Insert DIV container below 1st search result
- How to make WordPress search prioritise page titles?
- How to add the author search in the default wordpress search?
- How do I redirect /search/ to wordpress search template?
- How to search for users based on added user metadata
- Search by Post ID and display content of the post in search result
- Let user change posts per page
- Turning Broken URLs Into Search Terms?
- Change the Search Base in a multi language wordpress
- Search uses index.php instead of search.php on renaming search field from “s”
- Changing the default WordPress search action
- Get the selected term in a dropdown search
- Separating search results collectively by type
- Set default text for the_search_query();
- Noindex, nofollow stuck on homepage
- What are the different options for excluding certain post types from search results?
- Is_search not working on search results page
- Search in post title and custom fields
- How to change users smart quotes to dumb quotes in search bar?
- Trim the search result around the search word
- Need to do blank search.
- Searching custom fields is removing search on the post_title column
- Edit search results in order to advertise
- Search function works improperly
- 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
- Need to return a list based on Slug
- Meta query: How do I return posts within a date period from a given month?
- Using parent slug variable to display proper submenu not working properly
- Get Adjacent post by search query
- How to exclude pages from WP search based on page title
- why pre_get_posts works fine in post type archive, but not in search result list?
- How to get started?
- Search.php display results differently based on post type
- Search – Only search for post meta field
- Improved WordPress search functionality and search form plugin
- Use wordpress search to display results within a post
- How to query two meta fields and display results between them
- how to search everything
- changing search result from only excerpt to full content
- Cannot pass ‘S’ parameter more than two letters
- Localization of WP theme
- Make archive page show up in search results?
- How to have multiple instances of the same taxonomy in a search form
- WP + Google analytics = /search?
- Search result count not matching actual result
- WP_User_Query not searching
- How to search for post content and attached file names
- “Revision” records in wp_posts have original post type instead of “revision”
- Search engine for WP as CMS [closed]
- Searching for one letter returns extra empty post
- How to create a search form with multiple search fields
- REST API: Search products only in the names
- Bots using internal wordpress search
- WordPress search – Display the paragraph which has the searched word/term
- Altering search results to handle a post meta field not working in current WordPress
- WordPress Search by tags
- How to Integrate Live search in WordPress?
- WordPress search post using unicode
- Search results are showing full page instead of sample
- Create search box on Archive Custom post type
- How to pass variable to get_search_form()?
- Why the search results are wrong in search posts form?
- Search isn’t displaying all results
- How to use regular page template for search results?
- Search only blog posts on blog page
- Search: display all found matches inside post
- Auto search field without buttons, shows first result from search page
- WordPress search.php pulling search results but also matching a page and pulling that information in
- Can I set up a search box that uses fields?
- How to Search Users on the Base of Latitude and Longitude in Users meta_key and meta_value
- Search.php Modification Needed
- Search taxonomy terms, not posts
- I want to edit the search function
- Returning the entire line of a custom search result filter
- search does not yield access restricted results
- Customizing Home Page with Pagelines Platform
- Search Limited to Categories Not Working
- Google Search and Own Website Search?
- How we filter the search base on post-meta tags
- How to display articles based on composed tag
- Make search result returned only from tags! [duplicate]
- Form Data Causes “Page Not Found”
- Search query with quotes
- WordPress search form and input type=”image”
- Search options/filters
- Search Results with googlemaps
- How to search pdf attachment?
- Website Search Results Not Showing Images
- How to search for articles containing two words?
- Wp eCommerce meta information search [closed]
- Wp admin: I need search meta key from table wp_usermeta in screen custom post type
- search videos on divi builder
- Search keyword store in custom meta key