This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Logic for showing / hiding a widget

Resolved 4 replies premiumthemetheme-vantage
10 years ago · Last reply by Jeffrey Carandang 9 years ago

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

URL: https://training.ioitools.com

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

4
  1. Andrew Misplon Staff 10 years, 6 months ago

    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

  2. teamkoso 10 years, 6 months ago

    Thanks much, Andrew. Understood!

    E

  3. Andrew Misplon Staff 10 years, 6 months ago

    For sure :)

  4. Jeffrey Carandang 9 years, 2 months ago

    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

    is_user_logged_in()

    . I hope this helps!

    Cheers,
    Jeffrey

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.

Have a different question or issue?

Start New Thread