<?php if ( is_user_logged_in() ) { ?> | |
<a href="<?php echo get_permalink( get_option('woocommerce_myaccount_page_id') ); ?>" title="<?php _e('My Account','woothemes'); ?>"><?php _e('My Account','woothemes'); ?></a> | |
<?php } | |
else { ?> | |
<a href="<?php echo get_permalink( get_option('woocommerce_myaccount_page_id') ); ?>" title="<?php _e('Login / Register','woothemes'); ?>"><?php _e('Login / Register','woothemes'); ?></a> | |
<?php } ?> |
This comment has been minimized.
This comment has been minimized.
Since this has since changed by reading the page title, how could we add a function to control this? |
This comment has been minimized.
This comment has been minimized.
@metalcated what exactly do you want to control? |
This comment has been minimized.
This comment has been minimized.
I want to be able to change the Register / Login header the same as this code does using a function. From the best I can tell this does not work anymore. |
This comment has been minimized.
This comment has been minimized.
Hi James,
Do you have any idea how to solve any of this? Thanks a lot. |
This comment has been minimized.
This comment has been minimized.
This snippet works great for me! I would also love a log out option for users who are logged in. What is the code for that and where would it go? |
This comment has been minimized.
This comment has been minimized.
hello how to display user logged in place my account |
This comment has been minimized.
This comment has been minimized.
Hello, I have a question. This code is it implemented in template/header.php or header.php of the theme in use? |
This comment has been minimized.
This comment has been minimized.
Hi jameskoster, It would be more useful if you can explain this code to us. Actually I can see "wootheme" there in code, and I am using avada theme. So will it work on avada 4.0.3 |
This comment has been minimized.
This comment has been minimized.
Does this still work? |
This comment has been minimized.
can i get your help to know where i can find the header.php file? Is it under ../woocommerce/templates/myaccount? Thank you.