I’m using text element to display a login, logout, account and register link at the top bar of my website, I’ve done this by using an old code I found from 2016 located here: https://theme.co/archive/forums/topic/loginlogoutregisteraccount-in-top-bar/
First I’d like to know is the text element best to use for this application or should I use Headline or Button element?
Second, I’m not sure if since 2016 there is now a better way of doing this?
Third, I’m trying to use this code in the element CSS to make the buttons appear if logged in or appear if logged out:
Login / Register
.wp-account-url { display: block; }
.logged-in .wp-account-url { display: none; }
Logout / Account
.wp-account-url { display: none; }
.logged-in .wp-account-url { display: block; }
But the code isn’t performing correctly. Did I understand the code incorrectly?