Sarathlal N

Hide search form in WordPress toolbar

Hide search form in WordPress toolbar

//Hide search form in WordPress toolbar
function hide_admin_bar_search () {
	echo '<style type="text/css">
	#adminbarsearch {
		display: none;
	}
	</style>';
}
add_action('admin_head', 'hide_admin_bar_search');
add_action('wp_head', 'hide_admin_bar_search');

Recent Posts

  1. Redirect single pages of post type in to post type archive page - WordPress
  2. Get details about available image sizes - WordPress
  3. Change shipping and billing address title - WooCommerce
  4. Add phone number to the output of the addresses on the "My Account" page - WooCommerce
  5. Conditional tags for order thank you page - WooCommerce

Your Questions / Comments

If you found this article interesting, found errors, or just want to discuss about them, please get in touch.