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

7.07K 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?

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 ……

You are viewing 1 out of 4 answers, click here to view all answers.