WordPress.org

Support

Support » Plugins and Hacks » [Resolved] How to hide Dashboard and Profile links after logged in

[Resolved] How to hide Dashboard and Profile links after logged in

Viewing 6 replies - 1 through 6 (of 6 total)
  • Enable the “User Links” from TML Settings. There you can customize the available links for each type of User Role.

    If you remove them, they will not appear on the logout page.

    Thank you, websherpa. I got it.

    Do you know how to make the Widgets more compact?

    copy the code bellow on your function.pfp file that will do the trick it works for me .

    if (!current_user_can('manage_options')) {
        remove_action( 'admin_footer', 'wp_admin_bar_render', 1000 );
        remove_action('wp_footer', 'wp_admin_bar_render', 1000);
    
        function remove_admin_bar_style() {
        echo '<style>body.admin-bar #wpcontent, body.admin-bar #adminmenu { padding-top: 0px !important; }</style>';
        }
        add_filter('admin_head','remove_admin_bar_style');
    
        function remove_admin_bar_style_frontend() {
        echo '<style>html{ padding-top: 0px !important; }</style>';
        }
        add_filter('wp_head','remove_admin_bar_style_frontend');
        }

    Hi, Shinney,

    Thank you for your post. There are more than one function.php. Could you give some specific instruction?

    Thank you very much.

    im talking about the theme’s function.php i dont know what theme are you using maybe the file is named different . what is the theme you are using ?

    Thank you.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Resolved] How to hide Dashboard and Profile links after logged in’ is closed to new replies.