Aardvark Post It theme - hide menu before login

Aardvark Post It theme - hide menu before login

von a m -
Anzahl Antworten: 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

 

Als Antwort auf a m

Re: Aardvark Post It theme - hide menu before login

von alison mills -
Can anyone help PLEASE!
Als Antwort auf alison mills

Re: Aardvark Post It theme - hide menu before login

von Richard Oelmann -
Nutzerbild von Core developers Nutzerbild von Plugin developers Nutzerbild von 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