0

My client is looking for a way to have a Sign up/Login button outside the header menu area. For instance this website - https://poshmark.com/ . The "sign up with email" forwards to a login form which is the same as woocommerce login form. If i do this with a simple button - even after registration or login, the button will show the original text (ex. "login/register"), but the My account/Login/Register will show the user login name (ex. "customer name1"). All in all i want to copy the exact button in the main body of my website. I know this is simple for you, but i am really struggling here. Thank you in advance!

0

You can try wp_loginout() function which will display Login or Logout text (based on whether the user is logged in or not) in an anchor tag. And, then you can apply CSS styling to make the anchor tag to appear like a button. Hope this logic helps you.

See here for reference.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.