This topic has 4 replies, 2 voices, and was last updated 7 years, 12 months ago ago by Eva Kemp
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?
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.
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
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.
You must be logged in to reply to this topic.Log in/Sign up