Seen by non-logged in users

This topic contains 4 replies, has 3 voices, and was last updated by  Kor 7 years, 9 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #232984

    Richard Myrick
    Buyer
    Post count: 38

    I am wondering if there is a way to add an image/link in any of the front page sections that would only be seen by site visitors that aren’t logged in. It would be similar to how Yelp has an image/link to the registration page.

    This would work similarly to the “Your next review awaits” but it only shows up for logged in users.

    Thanks

    #233047

    Kor
    Moderator
    Post count: 16516

    Hi Richard,

    Here’s a technique you can use to achieve that. https://developer.wordpress.org/reference/functions/is_user_logged_in/#user-contributed-notes . The code will check if the current user is logged in and displays a Welcome note. You can change the note to an image. Let us know how it goes.

    Thanks!

    #233370

    Paolo
    Site Admin
    Post count: 31206

    You can use widget logic with that too. https://wordpress.org/plugins/widget-logic/

    #234335

    Richard Myrick
    Buyer
    Post count: 38

    Thanks Paolo and Kor. The widget you suggested hadn’t been updated for awhile so I started looking for other options.

    Ended up purchasing this one and it works exactly as I need it to. https://codecanyon.net/item/extended-widget-options-for-wordpress/14024086

    #234871

    Kor
    Moderator
    Post count: 16516

    Hi Richard,

    Thanks for sharing and I’m glad that it worked for you.

    Thanks!

Viewing 5 posts - 1 through 5 (of 5 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket