Title: Remove sidebar debug
Last modified: November 10, 2018

---

# Remove sidebar debug

 *  Resolved [Luke](https://wordpress.org/support/users/danceyrselfclean_admin/)
 * (@danceyrselfclean_admin)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/remove-sidebar-debug/)
 * Hi I would like to remove or hide the sidebar debug top menu item that shows 
   when viewing the site logged in on the front end.
 * I want to hide it to simplify the site for my clients.
 * Is there any code I can stick in the functions.php or a custom plugin to remove
   this?

Viewing 1 replies (of 1 total)

 *  [Dimitris – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support6/)
 * (@wpmudev-support6)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/remove-sidebar-debug/#post-10866435)
 * Hello [@danceyrselfclean_admin](https://wordpress.org/support/users/danceyrselfclean_admin/)
 * You can surpass this by using the following snippet:
 *     ```
       function remove_admin_links( $wp_admin_bar ) {
       	if ( 1 !== get_current_user_id() ) {
       		// remove Sidebar Debug link (Custom Sidebars plugin)
       		$wp_admin_bar->remove_node( 'cs-explain' );
       	}
       }
       add_action( 'admin_bar_menu', 'remove_admin_links', 9999 );
       ```
   
 * I also included a check for user ID=1 which is the initial WP admin user by default.
   Feel free to edit this with your own user ID, if different.
 * Warm regards,
    Dimitris

Viewing 1 replies (of 1 total)

The topic ‘Remove sidebar debug’ is closed to new replies.

 * ![](https://ps.w.org/custom-sidebars/assets/icon-256x256.png?rev=1414065)
 * [Custom Sidebars - Dynamic Sidebar Classic Widget Area Manager](https://wordpress.org/plugins/custom-sidebars/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-sidebars/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-sidebars/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-sidebars/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-sidebars/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-sidebars/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Dimitris – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support6/)
 * Last activity: [7 years, 7 months ago](https://wordpress.org/support/topic/remove-sidebar-debug/#post-10866435)
 * Status: resolved