Home Forums Basel support forum How to disable Header only in Login Page

How to disable Header only in Login Page

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #206745

    sankha110
    Participant

    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.
    #206759

    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

    #208256

    sankha110
    Participant

    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.
    #208258

    sankha110
    Participant

    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’);

    #208266

    Hello,

    Thank you very much for sharing your information. If you have any questions please feel free to contact us.

    Best Regards

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘How to disable Header only in Login Page’ is closed to new replies.