Home › Forums › Themes Support › Claue › change the links accounts in the main header
- This topic has 1 reply, 2 voices, and was last updated 4 years, 11 months ago by Harry.
-
AuthorPosts
-
-
May 25, 2019 at 11:54 pm #31403alexisrosiqueSupport Expired
Hi guys,
I have a little problem, in the icons placed right of the main header, I would like to change the URLs linked to these icons. (The links for “my-account”, “orders-tracking”, etc. As I have translated those pages to Spanish and now their slugs are “mi-cuenta” and “seguimiento-de-pedidos”). How can I do it?
-
May 26, 2019 at 12:17 am #31405HarrySupport Expired
Hi Alex,
Thank you for choose our theme.
Sorry because inconvenience.
1. For My Account page, please edit this page and change slug in backend.
2. To change slug of order-tracking page, please add below code to claue-child > functions.php
and change home_url( ‘/orders-tracking/’ with your site slug
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 ); } }
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio
-
-
AuthorPosts
You must be logged in to reply to this topic.