"My Account" in header

Hello,

Im working on membership website,

Managed to add “Login” and “Register” buttons in the header,

But how do I make “My Account” button appear and replace “Login/register” buttons when user is logged in?

Example below:

Hope to hear from you soon,

Kindest Regards,

Hey @HazLive,

Thanks for writing in!
Usually membership plugin provides related login/my-account menu items to add in menu. You don’t need to code it. Let us know which membership plugin you are using or provide us some details if you have set it differently, Provide us with your URL with login details(Secure Note). This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.

Regards

Thank you very much,

Im using WooCommerce Membership

I have attached my link in secure note

Hi there,

There is no built-in feature such as that where it controls the menu visibility based on certain condition. What you may want to try is 3rd party plugin such as this https://wordpress.org/plugins/menu-items-visibility-control/

It’s not our plugin so please use it with caution.

Thanks.

1 Like