WordPress admin bar not showing on front end for custom theme

Some custom wordpress theme doesn’t show the admin bar into the theme page same with the wp_head() and the wp_footer() wrote on the templates files. To resolve that problem just add the following code into your function.php or into your own plugin:

function admin_bar(){

    add_filter( 'show_admin_bar', '__return_true' , 1000 );
add_action('init', 'admin_bar' );

Source: http://stackoverflow.com/questions/21277190/wordpress-admin-bar-not-showing-on-frontend

Leave a Reply