How to disable Header only in Login Page
-
Can you please tell me how to disable HEADER & TOP BAR only in login page.
Please find the attachment.
Attachments:
You must be
logged in to view attached files.
Hello,
It is not possible to disable only on the login page. I can provide custom CSS and it would disable the top header on My Account page as well. Please advise if you need help with CSS.
Best Regards
Please help me with the CSS. I dont want my customers to access the product page without login. Can you please tell me solution for this. this is in a dev server still. im about to migrate to the live server as soon as this is done.
Please find the credentials below
Attachments:
You must be
logged in to view attached files.
i have found a solution. You also can use this as a thread.
Paste below code in the function.php and edit ‘/my-account/’ to your preferred redirect url.
function woo_login_redirect() {
if (
! is_user_logged_in()
&& (is_woocommerce() || is_cart() || is_checkout())
) {
wp_redirect( ‘/my-account/’ );
exit;
}
}
add_action(‘template_redirect’, ‘woo_login_redirect’);
Hello,
Thank you very much for sharing your information. If you have any questions please feel free to contact us.
Best Regards
The topic ‘How to disable Header only in Login Page’ is closed to new replies.