WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am having trouble with adminbar in my site. I have buddypress installed on my site. i have disabled wordpress default admin bar using few lines of code. But it still showing i am pretty sure its coming from buddypress. is there any simeple lines of code that can remove top admin bar? I don't want to use plugin.

Thanks in advance for help.

share|improve this question

closed as off-topic by toscho Aug 2 '14 at 20:42

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

up vote 0 down vote accepted

write this code in config.php

This file is located in the root directory.

** THis Will Remove disgusting Buddypress Top Admin Bar. Add this line of code at last of the previous codes and you are done */

define( 'BP_DISABLE_ADMIN_BAR', true );
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.