Login Logout Button Code

Hi guys

Hope you can help me get this right. Think im close but just don;t have the skills yet to code exactly what I want.
Situation is - I have two lighboxes which control my sign in and register options so thats all fine . I need a button on the Nav bar that will link to the Register ligthbox. I Also want this button to logout users.

So first click directs user to Login /Register lightbox (eg simple link)
Button then changes to say Logout
When logged in user clicks it then logs user out
Button changes back to say Login/Register

I have some code already but not working and a i understand some of the basics with changing the title of the button . sadly i can’t copy paste the code on here for some reason . Please could someone help me out with the code I’m sure this will be an easy help for you guys :slight_smile:

1 Like

Managed to snippet the code below …sorry its so big lol

Looking for the same. Did you ever find a solution?

The following video seems similar of your case.