If user is logged-in display/hide widgets ( siteorigine) [closed]

Probably simplest, though not always optimal, is to use CSS. In the vast majority of WordPress themes (ones assigning body classes), logged-in and home will be applied to the body tag automatically, when appropriate, and every widget gets a unique ID wherever it’s displayed.

So, if I wanted to hide a given widget to logged in users, on the home page only, I’d use Chrome Inspector or other inspection tool to find the widget, find the ID assigned to its div tag, open the Customizer, open Additional CSS, and add the following code – say if the widget’s ID turned out to be text-24:

/*CONCEAL text-24 WIDGET FROM LOGGED IN USERS ON HOME PAGE */
.home.logged-in #text-24 {
    display: none;
} 

(If I wanted it to remain visible to admin users – like myself – I’d need to do a little more work, for instance by adding a user class to body classes, or by using the admin-bar class if I happened to be hiding the Admin Bar already from users below Administrator level.)