• Hi there! Following problem:
    I’m using the flatsome theme in combination with wpml and woocommerce (multilingual). My site is bilingual, every string is translated and the menus are synchronized. On both my_account-pages I use following shortcode: [woocommerce_my_account]

    But only the english page displays the left column with the avatar and the menu and I don’t know why. This is the code that doesn’t run in the page_my_account.php when selected the other language:

    <?php if(is_user_logged_in()){?> 
    
    <div class="row collapse vertical-tabs">
    <div class="large-3 columns">
    	<?php if(is_user_logged_in()){?>
    		<div class="account-user hide-for-small">
    		<?php
    			 	$current_user = wp_get_current_user();
    			 	$user_id = $current_user->ID;
    				echo get_avatar( $user_id, 60 );
    	    ?>
    
    	    <span class="user-name"><?php echo $current_user->display_name?> <em><?php echo '#'.$user_id;?></em></span>
    	   	<span class="logout-link"><a href="<?php echo wp_logout_url(); ?>"><?php _e('Logout','woocommerce'); ?></a></span>		 
    
    	    <br>
    	</div>
    	<?php } ?>
    	<div class="account-nav">
    		 <?php if ( has_nav_menu( 'my_account' ) ) : ?>
    			<?php
    					wp_nav_menu(array(
    						'theme_location' => 'my_account',
    						'menu_class'      => 'tabs-nav',
    						'depth' => 0,
    					));
    			?>
    
    		 <?php else: ?>
    	        Define your 'My Account' navigation <b>Apperance > Menus</b>
    	    <?php endif; ?>
    	</div><!-- .account-nav -->
    </div><!-- .large-3 -->

    But I don’t see what is causing the error… Any ideas?

    https://www.ads-software.com/plugins/woocommerce/

Viewing 1 replies (of 1 total)
  • Thread Starter vanBersie

    (@vanbersie)

    I made some progress: I had to choose another page template. Now the avatar is showing but the my account navigation is still missing…

Viewing 1 replies (of 1 total)
  • The topic ‘My account not showing up on translated page’ is closed to new replies.