hide menu if user not logged in servicenow code example
Example: hide menu items if user not logged in
<style>
if(! is_user_logged_in() ) : ?>
.logged-in-menu{
display:none;
}
<?php endif; ?>
</style>
<style>
if(! is_user_logged_in() ) : ?>
.logged-in-menu{
display:none;
}
<?php endif; ?>
</style>