hide button from logged in users in wordpress code example
Example: show button if logged wp
.button-class {display: none;}
.logged-in .button-class {display: block;}
.button-class {display: none;}
.logged-in .button-class {display: block;}