If the search field is implemented as a widget, this can be done via the administration interface. Just navigate to Appearance > Widgets and drag the search widget from the widget area to the “Available Widgets” pane.
If the search field is hard-coded into the theme, it might be easier to edit the CSS rather than the HTML and PHP. Here’s how:
- Use Firebug or a similar tool to locate the DIV element containing the search code.
- In the theme’s CSS file (probably style.css), add
display: none
to that DIV. That’s it!
This is a minimally invasive approach. If you ever want to re-enable the search bar, just remove the display: none
statement from your CSS.
Related Posts:
- Template for individual post designs
- hide/show a div in wordpress
- Incorrect search results in search.php – issue triggered by using `define(‘BodyID’, ‘search’); the_post();` in search.php
- WP 3.4 – what action/hook is called when theme customisation is saved?
- What WP folder can I use to write files to?
- Is it good to rename theme folder downloaded from WordPress.org?
- Editing the custom background CSS
- What, specifically, should be included in theme_name_setup()?
- How to get gallery images?
- Is the theme customizer slowing down my site?
- How can I get wp_head() as a string instead of echoing it?
- Display a different theme for not logged-in users
- Best practice (forward compatibility) for theme options
- What does “Do not deregister the jquery script in the administration area” mean?
- What is the best book to learn how to make themes for wordpress?
- Symlink a directory to wp-content/themes
- What are WooCommerce starter themes? [closed]
- How to disable the gradient and font size internal CSS added by WordPress when using theme.json
- Is there an error in get_the_tag_list()?
- Example of a theme organization without all the default wp files in root
- Returning Variables back into a template
- Disable the Custom Internal CSS added by theme.json for Certain Pages
- Unwanted blank lines before tag
- How do I display the “Archives” widget layout (sidebar) in WordPress by ‘year’ then by ‘months’?
- How do you protect a premium theme from being copied?
- What page should I use for a contact form?
- Retrieve data using wpdb to use for customizer controls
- Custom Nav Walker Displaying Values in Sub Menu
- How to configure wordpress to work with Vuejs with SSR and without hashbang
- How can one update a theme on a live site without interruption?
- Sub folder CSS that’s read by Admin panel
- Some doubts about how to show posts in a custom theme?
- Dequeue a style file which is making website load slow!
- How to remove a file included in parent theme with locate_template() via child theme?
- Why are theme templates organized as multiple point of entry PHP files instead of reusing your theme’s index.php?
- Can’t delete theme
- How to add a second stylesheet to the editor
- Override template file i subfolders
- Single Page theme [closed]
- Theme Development for WordPress Multisite Installation
- Can I have two different theme for two different language?
- create category on theme setup
- WP_Comment_Query – Get comments and answers separately
- excerpt() shows different result between remote and localhost(development environment)
- Prefix best practice, should we use framework name or theme name?
- Theme Javascript.php Overwritten Nightly [closed]
- WordPress get_template_part() function not working
- How to add Space between sidebar and footer widget in WordPress theme [closed]
- WordPress Filtering Custom Post Type by Metadata and Search Heirachy
- Call to undefined function add_menu_page() on theme activation
- Best way to develop a new theme on a live site, with new content? [closed]
- How do I make the most minimal vanilla theme possible with nothing but raw content?
- Can I Set Up Session in WordPress Custom Page
- Is it acceptable for a WordPress theme to not accept widgets?
- Should all references to a text domain be to my current theme?
- Unique design inside a specific category’s url
- Simple child theme modification but links are broken
- Making a WordPress theme based on twentyten
- How can I wrap all blog posts image with
- theme style is applied on the dhasboard rather than the website
- Alignment Problem [closed]
- What $handle does WordPress use for a theme’s implicit style.css?
- Issue when posting updates/changes to wordress
- StoreFront WordPress theme: How can i create a new Home page with Custom design same as template [closed]
- Unwanted empty line at the beginning of document
- Why is my container argument not working for wp_nav_menu() [closed]
- Never actually adding the action? Or do I have to call the action?
- best practices for updating wordpress theme
- How to hide custom sidebar on mobile
- help needed for suit designing tool
- How to modify theme content in Thematic?
- How to update mark-up of a gallery block in a custom theme?
- Host Private Custom Theme
- Why not works the search.php file?
- My wordpress theme name isn’t updating straight away
- Customizer API Multi Sections in single Panel
- WordPress theme options checkbox default checked state
- Copying a modified theme from one wordpress site to another wordpress site [closed]
- How can I change this SVG shape that’s generated?
- Adding a second logo next to the main one in header
- (Parent) theme Is Not Showing In Theme Selection Panel and Therefore Breaks Child Theme
- How can I fix my theme header for my CSS stylesheet?
- Is hand coding required at all?
- How to show some of category in wordpress
- using themename_the_custom_logo() in template-tags?
- Creating a theme just to deploy a single page
- Creating a Sub Category Template
- Custom page template not showing on page creation
- Weird ‘theme update’ error [duplicate]
- WordPress Custom Search By Alphabet and order by asc and sesc
- WordPress two sidebar layout or theme
- Standard Way To Do Custom Work Within A Page?
- Confused on loading page content
- Add Dynamic Sidebar to Exisiting WordPress Theme [closed]
- How can I install my custom-made theme on a wordpress.com blog? [closed]
- Why am I getting posts back when I shouldnt
- HTML to WORDPRESS [closed]
- .submenu class missing in output from wp_nav_menu
- Meaning of “if ( is_home() && ! is_front_page() )” snippet?
- Dynamic nav menu with icons [closed]