Admin Bar Missing

3.26K viewsThemes
0

In order to use the Gonzales plugin, I am trying to get the admin bar to be visible on the front side, but even though I have enabled it in my user profile, it doesn’t show up.

Is this deliberate with AskBug or a real bug?

What’s the workaround?

Terence.

I thought it could be to do with a missing or misplaced “wp_footer();” in footer.php, but I checked and its there OK.

0

Open includes/hooks.php and remove :

add_action('show_admin_bar', '__return_false');

OK, yes this works now.

Adding back into functions.php is not necessary as long as you stop the function in hooks from blocking it.

I am going to experiment so that I don’t lose it when you update the theme.

// Added later

FWIW it cannot be prevented from disabling the admin bar by disabling the disable in child-theme/includes/hooks.php

But it can be controlled by the tick box in your WP profile.

So now I am not sure what the point is to disable it in hooks.php in the first place?

0

try to add this in functions.php:

add_action('show_admin_bar', '__return_true');

Nope. Cleared cache, logged out and back in, and checked my profile, its still not showing up