Your account expired support, please renew to get your support.

HomePage Forums Themes Support Shopic – Multipurpose WooCommerce WordPress Theme How can i change the “Create an Account”-Link

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #3570
    RogerB95
    Support 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.

    https://prnt.sc/wnk0k5

    #3586

    Hi 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.

    #3603
    RogerB95
    Support Expired

    Hey Mate, thanks for your respond! But nothing changed after adding the function.. how should I proceed ?

    Best,
    Roger

    #3613

    Hi 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.

    #3621
    RogerB95
    Support Expired
    This reply has been marked as private.
    #3622
    RogerB95
    Support Expired
    This reply has been marked as private.
    #3650

    Hi again,

    Please recheck your site, I fixed it for you.

    #3684
    RogerB95
    Support Expired

    Great thanx mate!

    #3686

    You are welcome!

    Keep contact with us when you need to help and don’t forget vote 5 stars for our team.

    Thanks

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

You must be logged in to reply to this topic.