New Zenner
- Join Date:
- May 2010
- Posts:
- 16
- Plugin Contributions:
- 0
Disable sidebox banner on home page
Hi Guys,
I've got a snippet of code which I've tried to adapt to be used to switch off the sidebox banners on particular pages. I have tried to use it to disable the banners on my home page only but for some reason it doesn't seem to work correctly..
.this is the code I used in the sidebox module override file-
// test if box should display
$show_banner_box = true;
if (SHOW_BANNERS_GROUP_SET7 == '') {
$show_banner_box = false;
}
// do not show if on index page
if ($current_page_base == 'main_page') {
$show_banner_box = false;
//echo 'I am hiding!!' //. $current_page_base;
}
if ($show_banner_box == true) {
$banner_box[] = TEXT_BANNER_BOX;
$banner_box_group= SHOW_BANNERS_GROUP_SET7;
This format has been used successfully before so I think the problem may be with the homepage/index page id...any help would be appreciated.