Home Forums WoodMart support forum Help in updating login menu

Help in updating login menu

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #61442

    iakshat05
    Participant

    Hi,

    Where can I find option to edit URL of the accounts menu. Attaching screenshot.

    Thanks

    Attachments:
    You must be logged in to view attached files.
    #61471

    Hello,

    Thank you very much for choosing our theme and contacting the support.

    The default WooCommerce does not provide any option for that. You will need to customize templates inc/template-tags.php

    Best Regards

    #63395

    iakshat05
    Participant

    I used remove action and hooked my own function 🙂

    remove_action( 'wp_footer', 'woodmart_sidebar_login_form', 160 );
    if( ! function_exists( 'my_sidebar_login_form' ) ) {
    	function my_sidebar_login_form() {
    		if( ! whb_is_enabled() || ! woodmart_woocommerce_installed() ) return;
    		
    		$settings = whb_get_settings();
    		$login_side = isset( $settings['account'] ) && $settings['account']['login_dropdown'] && $settings['account']['form_display'] == 'side';
    		$account_link = get_permalink( get_option( 'woocommerce_myaccount_page_id' ) );
    		
    		if ( ! $login_side || is_user_logged_in() ) return;
    		?>
    			<div class="login-form-side">
    				<div class="widget-heading">
    					<h3 class="widget-title"><?php esc_html_e( 'Sign in', 'woodmart' ); ?></h3>
    					<a href="#" class="close-side-widget"><?php esc_html_e( 'close', 'woodmart' ); ?></a>
    				</div>
    				
    				<?php woodmart_login_form( true, $account_link ); ?>
    				
    				<div class="create-account-question">
    					<span class="create-account-text"><?php esc_html_e( 'No account yet?', 'woodmart' ); ?></span>
    					<a href="<?php echo wp_registration_url(); ?>" class="btn btn-style-link btn-color-primary create-account-button"><?php esc_html_e( 'Create an Account', 'woodmart' ); ?></a>
    				</div>
    			</div>
    		<?php
    	}
    
    	add_action( 'wp_footer', 'my_sidebar_login_form', 170 );
    }
    #63413

    Hello,

    Thanks for sharing. Perhaps it would be helpful for other users.

    Best Regards

    #459587

    socialholicwebmedia
    Participant

    i like to change Create an Account link to my custom registration page , i using drop down login screenshot attached

    Attachments:
    You must be logged in to view attached files.
    #459773

    Hello,

    You can disable the drop-down in My account element of the Header builder and then create your own page.

    My Account page is Woocommerce functional page and it is not editable by default.

    If you have any questions please feel free to contact us.

    Best Regards

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