Admin toolbar not displaying on pages

The admin bar displays on the dashboard, but does not display on pages or posts.

I'm working with a child theme of Twenty Thirteen that I did not code. I'm a beginning level coder and work mostly with builders. So the builder plugin I installed is also not showing up either.

I've read some potential causes and checked those off. There are things I've tried that did not correct the problem:

The display is set correctly in the user settings.

I logged out as an admin, logged in as a subscriber and logged back in as an admin.

The index.php file contains '' (the code is not displaying, but it is the php call for the footer)

The function.php file does not have any code pertaining to the admin bar.

The footer.php file does not have any code pertaining to the admin bar.

I do not have access to the client's files on their server, so I cannot use wp_debug. I installed a debug plugin, but it runs on the admin bar, which I cannot see, and needs wp_debug to be activated.

Any suggestions?

Topic admin-bar Wordpress

Category Web


Visibility of admin bar is controlled via the show_admin_bar() function. If the child-theme contains this function, and its value is false, then the admin bar will not be shown.

One solution might be to hook into different action hooks with a higher priority, and try to enable the admin bar again:

add_action('after_setup_theme', 'remove_admin_bar', 999);

function remove_admin_bar() {
   show_admin_bar( true );
}

You can also try the specific filter on the newer versions, and enable/disable the admin bar:

add_filter('show_admin_bar', '__return_true', 999);

But the most straight forward solution would be to find and comment out this function in your child-theme.


Check against the many ways you can disable the admin bar - http://code.tutsplus.com/tutorials/how-to-disable-the-admin-bar-in-wordpress-3-3--wp-23361

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.