Home>Support>vantage theme conditional homepage widgets

vantage theme conditional homepage widgets

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. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 4 months ago Andrew Misplon
    Hi, I Work Here

    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. 9 years, 4 months ago Paul McMaster

    sad but fair. thank you

  3. 9 years, 4 months ago Andrew Misplon
    Hi, I Work Here

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

    All the best.

  4. 9 years, 4 months ago Paul McMaster

    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. 9 years, 4 months ago Andrew Misplon
    Hi, I Work Here

    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.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More