Title: [Plugin: Hide Admin Bar Search] This is just CSS &#8211; know PHP method?
Last modified: August 19, 2016

---

# [Plugin: Hide Admin Bar Search] This is just CSS – know PHP method?

 *  Resolved [Jason LeMahieu (MadtownLems)](https://wordpress.org/support/users/madtownlems/)
 * (@madtownlems)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-hide-admin-bar-search-this-is-just-css-know-php-method/)
 * No offense, but this plugin seems pretty trivial, as it only outputs
 * #wpadminbar #adminbarsearch {display: none;}
 * which someone could quite easily do much quicker with their CSS editor.
 * Do you know how to remove it with PHP?
 * [http://wordpress.org/extend/plugins/hide-admin-bar-search/](http://wordpress.org/extend/plugins/hide-admin-bar-search/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Helen Hou-Sandi](https://wordpress.org/support/users/helen/)
 * (@helen)
 * Core Lead Developer and 4.0, 4.7, and 5.6 Release Lead
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-hide-admin-bar-search-this-is-just-css-know-php-method/#post-1983027)
 * Yes, this is a small plugin indeed. However, it addresses the following:
    - Not all people are comfortable editing their CSS
    - It also hides the search in the admin/dashboard, which is not a CSS file you
      should be editing
    - One may want it to be network-wide regardless of what theme is being used 
      in a multisite situation (which was my reason for writing this in the first
      place)
 * There is no way to remove it using PHP – it’s baked directly in the render() 
   method for the admin bar class. Believe me, if I could have done it that way,
   I would, and then would have titled the plugin “Remove Admin Bar Search” instead
   of “Hide Admin Bar Search”.

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Hide Admin Bar Search] This is just CSS – know PHP method?’ 
is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/hide-admin-bar-search.svg)
 * [Hide Admin Bar Search](https://wordpress.org/plugins/hide-admin-bar-search/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/hide-admin-bar-search/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/hide-admin-bar-search/)
 * [Active Topics](https://wordpress.org/support/plugin/hide-admin-bar-search/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/hide-admin-bar-search/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/hide-admin-bar-search/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Helen Hou-Sandi](https://wordpress.org/support/users/helen/)
 * Last activity: [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-hide-admin-bar-search-this-is-just-css-know-php-method/#post-1983027)
 * Status: resolved