Web Hosting
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: After login when I Open my Blog in next tab admin bar not show on...

Discussion in 'Misc WordPress Requests' started by Mateus Getulio Vieira, Nov 23, 2017.

  1. Mateus Getulio Vieira

    Guest

    Reply To: After login when I Open my Blog in next tab admin bar not show on top Bar, by Mateus Getulio Vieira

    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(){

    if(is_user_logged_in()){
    add_filter( ‘show_admin_bar’, ‘__return_true’ , 1000 );
    }
    }
    add_action(‘init’, ‘admin_bar’ );

    Reply To: After login when I Open my Blog in next tab admin bar not show on top Bar
     
    #1

Share This Page

Web Hosting