Turn off navbar if user not signed in
Turn off navbar if user not signed in
I want to turn off the navbar if the user is not signed in. What is the best way to do this?
Re: Turn off navbar if user not signed in
I found a quick way to do this. Add this just before the <body> tag.
Comments welcome.
Code: Select all
<?php
$mi = getMemberInfo();
if(!$mi['username'] || $mi['username'] == 'guest'){ ?>
<style>
.navbar-fixed-top {
min-height: 0px;
display: none;
}
</style>
<?php } ?>