HomePage › Forums › Themes Support › Shopic – Multipurpose WooCommerce WordPress Theme › How can i change the “Create an Account”-Link
Tagged: Register link, WooCommerce
- This topic has 8 replies, 3 voices, and was last updated 3 years, 10 months ago by Billy Nguyen.
-
AuthorPosts
-
January 14, 2021 at 11:36 pm #3570RogerB95Support Expired
How can i change the “Create an Account”-Link, and also the Language in the Sign in-dropdown menu.
I tried in the Theme-Editor , but i can not find it.January 15, 2021 at 10:33 am #3586Hi there,
To change this link, please copy and add code into file functions.php ( child-theme)
function shopic_form_login() { if (shopic_is_woocommerce_activated()) { $account_link = get_permalink(get_option('woocommerce_myaccount_page_id')); } else { $account_link = wp_registration_url(); } ?> <div class="login-form-head"> <span class="login-form-title"><?php esc_attr_e('Sign in', 'shopic') ?></span> <span class="pull-right"> <a class="register-link" href="<?php echo esc_url($account_link); ?>" title="<?php esc_attr_e('Register', 'shopic'); ?>"><?php esc_attr_e('Create an Account', 'shopic'); ?></a> </span> </div> <form class="shopic-login-form-ajax" data-toggle="validator"> <p> <label><?php esc_attr_e('Username or email', 'shopic'); ?> <span class="required">*</span></label> <input name="username" type="text" required placeholder="<?php esc_attr_e('Username', 'shopic') ?>"> </p> <p> <label><?php esc_attr_e('Password', 'shopic'); ?> <span class="required">*</span></label> <input name="password" type="password" required placeholder="<?php esc_attr_e('Password', 'shopic') ?>"> </p> <button type="submit" data-button-action class="btn btn-primary btn-block w-100 mt-1"><?php esc_html_e('Login', 'shopic') ?></button> <input type="hidden" name="action" value="shopic_login"> <?php wp_nonce_field('ajax-shopic-login-nonce', 'security-login'); ?> </form> <div class="login-form-bottom"> <a href="<?php echo wp_lostpassword_url(get_permalink()); ?>" class="lostpass-link" title="<?php esc_attr_e('Lost your password?', 'shopic'); ?>"><?php esc_attr_e('Lost your password?', 'shopic'); ?></a> </div> <?php }
add $account_link = ‘your-custom-link’ and change all text on form.
January 15, 2021 at 10:14 pm #3603RogerB95Support ExpiredHey Mate, thanks for your respond! But nothing changed after adding the function.. how should I proceed ?
Best,
RogerJanuary 16, 2021 at 10:11 am #3613Hi again,
#1. Active child-theme and add code into file functions.php
#2. Edit $account_link = ‘your-custom-link’ and change all text on form.If you need to help, please send Admin web account for me, I will check and help you.
January 16, 2021 at 6:28 pm #3621RogerB95Support ExpiredThis reply has been marked as private.January 16, 2021 at 6:33 pm #3622RogerB95Support ExpiredThis reply has been marked as private.January 18, 2021 at 9:07 am #3650Hi again,
Please recheck your site, I fixed it for you.
January 18, 2021 at 3:01 pm #3684RogerB95Support ExpiredGreat thanx mate!
January 18, 2021 at 3:07 pm #3686You are welcome!
Keep contact with us when you need to help and don’t forget vote 5 stars for our team.
Thanks
-
AuthorPosts
You must be logged in to reply to this topic.