Change content of Registration tab in My Account section in HEADER

1 reply2 participantsUpdated by Jack Richardson

XStore documentationLogin and register forms and tabs in XStore
  • Avatar: Crazystar
    Crazystar
    Participant

    I need to change the content on the Registration tab in the header. By default, there is a field for entering an email address, and the password will be sent to the customer via email. We use B2B registration in our e-shop, and I would like to place only a button for the registration form on a separate subpage. Where can I change the content of this Registration tab? I am also sending a screenshot of what I want to change.

    In case it is not possible to change it directly in Theme Options, where I can find a code for this ?

    Thank you

    Files is visible for topic creator and
    support staff only.

    1 Answer

    Avatar: Jack Richardson
    Jack Richardson
    Support staff

    Hello @Crazystar,

    You may try adding the following custom snippet in xstore-child/functions.php:

    add_action('woocommerce_register_form_start', function() { 
    	if ( did_action('etheme_header_end') ) return; ?>
    	<div class="full-width align-center custom-register-button-wrapper">
    		<a href="yourcustomurl.com" class="btn btn-active custom-register-button">Custom link</a>
    	</div>
    <?php }); ?> 
    

    https://prnt.sc/kNNQ6IeffXkp

    Additionally, please include the following custom CSS:

    .woocommerce-form-register .custom-register-button-wrapper ~ * {
        display: none;
    }

    https://www.8theme.com/documentation/xstore/additional-customisation/optimal-placement-for-custom-css-code/

    You can see the frontend result here: https://gyazo.com/aa74dfc99f8a7668ad94951d8fa34196

    Please note that we generally do not provide additional customization. However, as an exception, we have shared the code above.

    Best regards,
    Jack Richardson
    The 8Theme Team

Want to reply? Log in, or register with your ThemeForest purchase code, to reply to this topic.

Login / Register