Aardvark Post It theme - hide menu before login

Aardvark Post It theme - hide menu before login

by a m -
Number of replies: 2

I am using aardvark Post It theme on v 2.2.3 and need to hide the custom menu before login. Can someone tell me which file to alter, and what to change it to? Ive followed the instructions for Formal white but the two files mentioned aren't in the layout folder for this theme.

Thank you

 

Average of ratings: -
In reply to a m

Re: Aardvark Post It theme - hide menu before login

by alison mills -
Can anyone help PLEASE!
In reply to alison mills

Re: Aardvark Post It theme - hide menu before login

by Richard Oelmann -
Picture of Core developers Picture of Plugin developers Picture of Testers

Hi Alison

I don't have aardvark post it on my computer in work so the code below is from afterburner, but it may help point you in the right direction. In the layout file (in afterburner it's default.php - but it maybe general.php or frontpage.php or both), you nede to wrap an if(islogged in around the call for the custommenu something like below

<?php if (isloggedin()){
     if ($hascustommenu) { ?>
        <div id="custommenu" class="javascript-disabled"><?php echo $custommenu; ?></div>
    <?php }
} ?>

 

I haven't tested that code and as I said I haven't got aardvark postit on my machine, but hopefully it will give you an idea where to go.

HTH

Richard