Change Your Account to My Account - by C2market

This topic has 4 replies, 2 voices, and was last updated 7 years, 12 months ago ago by Eva Kemp

  • Avatar: C2market
    C2market
    Participant
    April 26, 2016 at 15:44

    In the header I wish to change the words Your Account to My Account.

    Also when a user logs in, it brings them automatically to the recent orders page can I direct them to the homepage instead?

    3 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    April 26, 2016 at 16:05

    Hello,

    To change the link title you need edit the file wp-content/themes/legenda/framework/theme-functions.php in line 1252.

    Also when a user logs in, it brings them automatically to the recent orders page can I direct them to the homepage instead?

    This is Woocommerce configuration and you may ask at their support team or search for some Woocommerce extension to modify this page as My Account page isn’t related to the theme.

    Thank you.

    Regards,
    Eva Kemp.

    Avatar: C2market
    C2market
    Participant
    April 26, 2016 at 16:44

    Not sure what I have to change?

    if(!function_exists(‘etheme_top_links’)) {
    function etheme_top_links() {
    ?>
    <ul class=”links”>
    <?php if ( is_user_logged_in() ) : ?>
    <?php if(class_exists(‘Woocommerce’)): ?> <li class=”my-account-link”>“><?php _e( ‘Your Account’, ETHEME_DOMAIN ); ?>
    <div class=”submenu-dropdown”>
    <?php if ( has_nav_menu( ‘account-menu’ ) ) : ?>
    <?php wp_nav_menu(array(
    ‘theme_location’ => ‘account-menu’,
    ‘before’ => ”,
    ‘after’ => ”,
    ‘link_before’ => ”,
    ‘link_after’ => ”,
    ‘depth’ => 4,
    ‘fallback_cb’ => false
    )); ?>
    <?php else: ?>
    <h4 class=”a-center install-menu-info”>Set your account menu in Apperance > Menus</h4>
    <?php endif; ?>
    </div>
    <?php endif; ?>
    <li class=”logout-link”>“><?php _e( ‘Logout’, ETHEME_DOMAIN ); ?>
    <?php else : ?>
    <?php
    $reg_id = etheme_tpl2id(‘et-registration.php’);
    $reg_url = get_permalink($reg_id);
    ?>
    <?php if(class_exists(‘Woocommerce’)): ?><li class=”login-link”>“><?php _e( ‘Sign In’, ETHEME_DOMAIN ); ?><?php endif; ?>
    <?php if(!empty($reg_id)): ?><li class=”register-link”>“><?php _e( ‘Register’, ETHEME_DOMAIN ); ?><?php endif; ?>
    <?php endif; ?>

    <?php

    Avatar: Eva
    Eva Kemp
    Support staff
    April 26, 2016 at 17:05

    Hello,

    Edit this code <?php if(class_exists(‘Woocommerce’)): ?> <li class=”my-account-link”>“><?php _e( ‘Your Account’, ETHEME_DOMAIN ); ?> and change Your Account to My Account.

    Regards,
    Eva Kemp.

  • Viewing 4 results - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.