Archived topic
Does GP not add logged in/out classes to ?
3 replies · Started by Arp on December 28, 2020
I switched a client over to GP and noticed that hiding things with css based on logged in/out status stopped working. (and yes, I know it's not ideal but until their membership plugin fixes its bugs, it's a necessary evil). Is there a snippet to add the logged in/out class to the body?
Hi there,
no GP doesn't add those classes.
This Gist provides the PHP Snippet to to that:
https://gist.github.com/danielmcclure/31463eb8c72316b21154f45483ad6777
Much appreciated!
You're welcome