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.

vantage theme conditional homepage widgets

Resolved 5 replies premiumthemetheme-vantage
10 years ago · Last reply by Andrew Misplon 10 years ago

I am interested in showing different widgets or whole homepage to logged in users and logged out. I tried two plugins that make widgets conditional but they don’t effect widgets in the site origin page builder. any ideas how to accomplish this?

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

Need fast email support? Get SiteOrigin Premium

Replies

5
  1. Andrew Misplon Staff 10 years, 9 months ago

    Hi Paul

    We unfortunately haven’t yet seen a conditional widgets plugin that works in Page Builder. I’m sure it’s something we’ll launch in the future, nothing in the pipeline yet though.

    Sorry we don’t have better news.

    It is possible to change your menu based on conditionals. A separate page might be the way to go:

    https://wordpress.org/plugins/if-menu/
    https://wordpress.org/plugins/menu-items-visibility-control/

  2. Paul McMaster 10 years, 9 months ago

    sad but fair. thank you

  3. Andrew Misplon Staff 10 years, 9 months ago

    Thanks for your understanding Paul. Hopefully better news in the future.

    All the best.

  4. Paul McMaster 10 years, 9 months ago

    I came up with a work around if you want to share with others

    Basically I created a second home page and then added this to my functions.php file:

    //redirect homepage for logged in users
    function homepage_template_redirect()
    {
    if( is_front_page() && is_user_logged_in() )
    {
    wp_redirect(get_page_link(270));
    exit();
    }
    }
    add_action( ‘template_redirect’, ‘homepage_template_redirect’ );

    changing the get_page_link number to the page id of the new homepage. this way logged in users see one page and logged out sees the default

  5. Andrew Misplon Staff 10 years, 9 months ago

    100%, that works. Thanks for sharing. Glad to hear you made progress.

    Don’t forget to make the functions change in a child theme.

    All the best.

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