In this answer, I have shared WordPress admin bar not showing on frontend. 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:
1 2 3 4 5 6 7 | function admin_bar(){ if(is_user_logged_in()){ add_filter( 'show_admin_bar', '__return_true' , 1000 ); } } add_action('init', 'admin_bar' ); |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.