Hi,
I’ve designed my Vantage homepage with a SO Call to Action widget. This site requires a member login, so what I would like to do is to change the widget or hide it depending on if the visitor is registered or not.
In pseudocode:
If isUser() = TRUE Then
Registration Call-to-Action.SHOW
Else
Mailing List Call-to-Action.SHOW
End If
Or if the user is not registered, just hiding the Call to Action widget would be fine too.
I took a look through the forum, but couldn’t really find something that looked like what I needed. Perhaps I’m just not searching on the wrong terms… If there is a post that explains this, please just point me toward it.
All the best,
Erik
Hi teamkoso
Sorry we weren’t able to reply sooner. Since we started chatting about this on email first, let’s stick to that channel.
Chat further on email.
Cheers
Thanks much, Andrew. Understood!
E
For sure :)
Hi Everyone,
Would like to pitch in for further solution since it’s not included on the thread. If anyone is still looking for hiding widgets on logged in users. You can use Widget Options Plugin : https://wordpress.org/plugins/widget-options/ and under the Display Widget Logic area/tab you can use any WordPress conditional tags such as
. I hope this helps!
Cheers,
Jeffrey