How to remove black (WordPress) dashboard after logged in?

6.96K viewsWordPress
1

I tried to log in with a separate account with a separate browser, the black dashboard pops in at the top of the screen.. exactly the same that appears when i log at the backend of my site. How to disable it?

0

You can use theme my login plugin and disable anspress signup and login setting in options.You need to customize TML plugin by enabling widget & set a page as login page.

0

oh 😀
simply do this

add_action('show_admin_bar', '__return_false');

Is this to remove the black wp bar at the top?

Yes 🙂

0

I found out it is called the topbar… please help!

1

oh you mean you are redirected to wp-admin :).

just add this code to your function.php file inside your active theme.
for registartion

add_filter( 'registration_redirect', 'openwp_registration_redirect' );
function openwp_registration_redirect() {
    return get_permalink(ap_opt('base_page'));
}

For login

add_filter( 'login_redirect', 'openwp_login_redirect' );
function openwp_login_redirect() {
    return get_permalink(ap_opt('base_page'));
}

not working. May be i need to write in anther language…. I am all done… Q&A working. i wanted to post a dummy Q i had to log in. I logged in with a different account.. (Q&A) was successful. But after logged in a new back naviagation area appeared and on the left handside it has got (W) sign… then the name of my site then a drop down menu…( menu with dashboard, anspress, profile ……