How can I hide a div or widget from logged in users ?


I'm using a cool slideshow plugin to display several banners with information about why people should sign up to my site. These banners appear right under the menu (I'm using BP-Corporate) and they take quite a bit of space..

The idea is to hide this plugin/code as soon as a user logs in.. right now the code in my header.php template is as follows:

<?php if (function_exists('vslider')) { vslider(); }?>

I know a tiny bit of PHP and I know I should use IF condition to get this right, but I have no idea how to do this.. Could anyone help me with this ?

Thanks in advance :smiley: