Love my new Dashboard! (How do I get rid of the admin bar?)

Really excited to be giving clients a customized Dashboard that goes on all their sites!

However, my “Section” Template that I created in Bricks seems to be inheriting the admin bar - so it’s doubled:


Anyone know how I can get rid of that?

1 Like

Hi! :slight_smile: This is a known issue and has been fixed locally. Will deploy it in the next version :slight_smile:

3 Likes

Great to hear it. Thanks @Daniele!

If you can deploy some code to functions.php (Child Theme in Bricks) or if you are using a snippet manager (WPCodeBox, Code Snippets etc.) you can try something like this:

add_filter('show_admin_bar', 'disable_admin_bar_for_adminbar_false');

function disable_admin_bar_for_adminbar_false($show) {
  if (is_user_logged_in() && isset($_GET['adminbar']) && $_GET['adminbar'] == 'false') {
    $show = false;
  }
  return $show;
}

Now add ?adminbar=false to your url for your backend page.

2 Likes

Thanks @MaxZieb! Very helpful code snippet.

Is there a new setting to correct this? It appears to still be happening.

1 Like

Is there a solution yet? It still happens for me.

1 Like