I am using this WooCommerce tutorial to attempt to add Log In / Log Out links to my primary navigation depending on whether the customer is logged in or out.
However, the code they supply there doesn't work. Any idea how I can get this working in your theme?
So for example, if a user is logged out, they should say the words Log In in the primary navigation. If they are logged in, they should see the words Log Out. Each set of words should link to the correct WooCommerce log in / log out functions.
Hi there,
I am using this WooCommerce tutorial to attempt to add Log In / Log Out links to my primary navigation depending on whether the customer is logged in or out.
https://support.woothemes.com/hc/en-us/articles/203106357-Add-Login-Logout-Links-To-The-Custom-Primary-Menu-Area
However, the code they supply there doesn't work. Any idea how I can get this working in your theme?
So for example, if a user is logged out, they should say the words Log In in the primary navigation. If they are logged in, they should see the words Log Out. Each set of words should link to the correct WooCommerce log in / log out functions.
Let me know your thoughts,
Richard
This is fixed. Used the following code in functions.php: