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?
vantage theme conditional homepage widgets
This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.
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/
sad but fair. thank you
Thanks for your understanding Paul. Hopefully better news in the future.
All the best.
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
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.