Home>Support>Logic for showing / hiding a widget

Logic for showing / hiding a widget


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
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,

URL: https://training.ioitools.com

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 7 years, 1 day ago Andrew Misplon Hi, I Work Here

    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.


  2. 7 years, 1 day ago teamkoso

    Thanks much, Andrew. Understood!


  3. 6 years, 11 months ago Andrew Misplon Hi, I Work Here

    For sure :)

  4. 5 years, 8 months ago Jeffrey Carandang

    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!


Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More