How can I remove register form page header

This topic has 2 replies, 2 voices, and was last updated 1 years, 3 months ago ago by Rose Tyler

  • Avatar: Topis
    Topis
    Participant
    January 17, 2023 at 15:27

    Hello, we have tried to integrate a plugin from a provider which sends SMS on the abandoned cart. Plugin on the checkout page searches for input with an id “billing_phone”. The problem occurs because there are two duplicate IDs on the page. One is on the checkout page and another is in the header in the “Account” section where you can log in and register. Is there a way that we can remove that registration form from the header?

    Thanks and best regards

    1 Answer
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    January 17, 2023 at 18:03

    Hello,

    Please, add the next custom code to your xstore-child/functions.php

    add_action('wp', function() {
        if ( !is_account_page() ) {
            if ( !get_query_var('et_is-loggedin', false)) {
                set_query_var( 'et_account-registration', false );
            }
        }
    }, 22);

    Kind Regards,
    8theme team

  • Viewing 2 results - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.