Home › Forums › Themes Support › Claue › Default Login URL
- This topic has 1 reply, 2 voices, and was last updated 5 years, 8 months ago by Harry.
Viewing 1 reply thread
-
AuthorPosts
-
-
April 22, 2019 at 5:13 am #30500
Hi,
By default, your theme is using my-account page for login and register. But I want to change that to a custom page. For example /login.
And I don’t want any sub menu with my account button.
How can I do that? I am using header-3
-
April 22, 2019 at 9:57 am #30505
Hi,
Please add below code to claue-child > functions.php
if ( ! function_exists( 'jas_claue_wc_my_account' ) ) { function jas_claue_wc_my_account() { $output = ''; if ( cs_get_option( 'header-my-account-icon' ) ) { $output .= '<div class="jas-my-account hidden-xs ts__05 pr">'; $output .= '<a class="cb chp db" href="' . esc_url( get_permalink( get_option( 'woocommerce_myaccount_page_id' ) ) ) . '"><i class="pe-7s-user"></i></a>'; $output .= '<ul class="pa tc">'; if ( is_user_logged_in() ) { $output .= '<li><a class="db cg chp" href="' . esc_url( get_permalink( get_option( 'woocommerce_myaccount_page_id' ) ) ) . '">' . esc_html__( 'Dashboard', 'claue' ) . '</a></li>'; $output .= '<li><a class="db cg chp" href="' . esc_url( home_url( '/orders-tracking/' ) ) . '">' . esc_html__( 'Order Tracking', 'claue' ) . '</a></li>'; $output .= '<li><a class="db cg chp" href="' . esc_url( wp_logout_url() ) . '">' . esc_html__( 'Logout', 'claue' ) . '</a></li>'; } else { $output .= '<li><a class="db cg chp" href="' . esc_url( get_permalink( get_option( 'woocommerce_myaccount_page_id' ) ) ) . '">' . esc_html__( 'Login / Register', 'claue' ) . '</a></li>'; } $output .= '</ul>'; $output .= '</div>'; } return apply_filters( 'jas_claue_wc_my_account', $output ); } }
and change as you want.
BTW, you support expired. Could you please renew support at https://themeforest.net/item/claue-clean-minimal-woocommerce-theme/18929281 that will help us continue to develop our theme.
Thanks
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio
-
-
AuthorPosts
Viewing 1 reply thread
You must be logged in to reply to this topic.