Title: Remove &quot;Clear&quot; Function
Last modified: August 24, 2016

---

# Remove "Clear" Function

 *  Resolved [Steve @ trialsphere](https://wordpress.org/support/users/trialsph/)
 * (@trialsph)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/remove-clear-function/)
 * Hello, I dont want my members to be visible to unregistered users. When I do 
   a search as an unregistered user, I can “clear” the search and all of my users
   appear. Is there any way to remove the “clear” function? I tried with CSS, but
   no luck. Thanks
 * Steve
 * [https://wordpress.org/plugins/bp-profile-search/](https://wordpress.org/plugins/bp-profile-search/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [Andrea Tarantini](https://wordpress.org/support/users/dontdream/)
 * (@dontdream)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/remove-clear-function/#post-6003589)
 * Hi Steve,
 * Try this CSS rule:
 * `p.bps_filters a {display: none;}`
 * If that doesn’t work, edit the plugin file _bps-search.php_ and delete the line
   114:
 * `echo "<a href='$action'>". __('Clear', 'buddypress'). "</a><br/>\n";`
 *  Thread Starter [Steve @ trialsphere](https://wordpress.org/support/users/trialsph/)
 * (@trialsph)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/remove-clear-function/#post-6003623)
 * That rule worked. Youre amazing. Thank You!
 *  Thread Starter [Steve @ trialsphere](https://wordpress.org/support/users/trialsph/)
 * (@trialsph)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/remove-clear-function/#post-6003627)
 * New problem: Previously, at least 1 criteria had to be entered into the search
   form to display results (searching an empty form would result in “no members 
   found”). Now, searching an empty form displays all users. This may have happened
   after I updated the plugin and has nothing to do with the new CSS rule. Any ideas?
   Thanks a lot
 *  Thread Starter [Steve @ trialsphere](https://wordpress.org/support/users/trialsph/)
 * (@trialsph)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/remove-clear-function/#post-6003631)
 * Fixed it! I had this problem before and deleted the line:
    // $results[‘validated’]
   = false;
 * I just had to delete it again after the plugin update.
 * Steve
 *  Thread Starter [Steve @ trialsphere](https://wordpress.org/support/users/trialsph/)
 * (@trialsph)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/remove-clear-function/#post-6003632)
 * deleted from the BPS-Search.php file
 *  Plugin Author [Andrea Tarantini](https://wordpress.org/support/users/dontdream/)
 * (@dontdream)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/remove-clear-function/#post-6003634)
 * Yes, I recall it.
 * Probably I should add an option to choose what to do when the search form is 
   left empty…

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Remove "Clear" Function’ is closed to new replies.

 * ![](https://ps.w.org/bp-profile-search/assets/icon.svg?rev=1568973)
 * [BP Profile Search](https://wordpress.org/plugins/bp-profile-search/)
 * [Support Threads](https://wordpress.org/support/plugin/bp-profile-search/)
 * [Active Topics](https://wordpress.org/support/plugin/bp-profile-search/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bp-profile-search/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bp-profile-search/reviews/)

## Tags

 * [visibilty](https://wordpress.org/support/topic-tag/visibilty/)

 * 6 replies
 * 2 participants
 * Last reply from: [Andrea Tarantini](https://wordpress.org/support/users/dontdream/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/remove-clear-function/#post-6003634)
 * Status: resolved