WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Templates, Menus & Design => Topic started by: seanie_morris on November 06, 2015, 09:50:19 AM

Title: Main menu disappears on hidden pages (bs_naturak template)
Post by: seanie_morris on November 06, 2015, 09:50:19 AM
Hi,

(I thought I found this on a search a year or two ago, but I can't find it now.)

The main menu on my site disappears when a hidden page is viewed. I am using the bs_naturak template, and it doesn't use the function call show_menu2 on its index.php page, so I am a little confused as to what to do for showing the menu on hidden pages.


Thanks,

Seanie.
Title: Re: Main menu disappears on hidden pages (bs_naturak template)
Post by: seanie_morris on November 06, 2015, 10:44:21 AM
(Can't edit previous post)

EDIT: I found that the show_menu2 function is on nav.php so I am trying variations in here:

Code: [Select]
show_menu2(
$aMenu          = 1,
$aStart         = SM2_ROOT,
$aMaxLevel      = SM2_CURR+1,
$aOptions       = SM2_ALL,
$aItemOpen      = $open,
$aItemClose     = '</li>',
$aMenuOpen      = '<ul class="[if(level==0){nav navbar-nav} else {dropdown-menu}]">',
$aMenuClose     = '</ul>',
$aTopItemOpen   = false,
$aTopMenuOpen   = false
);

to find a solution.

I have 2 websites using the bs_naturak template, and one will show the menu on hidden pages, while one does not. The code shown above is the same for both. Even copying all of the code from the good nav.php into the bad nav.php and re-uploading that, doesn't have an affect. So there is something amiss in the affected one I have to find out.

Seanie.