Zen Follower
- Join Date:
- Jul 2010
- Posts:
- 278
- Plugin Contributions:
- 0
Help hiding a sidebox from certain pages
hi,
i want to hide my categories sidebox on manufacturers pages, but I do not know how and I have failed.
I use this from Ajeh's posts to hide it on Define Pages,
//BOF PART 1 OF 2 FOR CAT SIDEBOX OFF ON SOME PAGES
$show_categories = true;
if (in_array($_GET['main_page'], array(FILENAME_LOGOFF, FILENAME_LOGIN, FILENAME_PRIVACY, FILENAME_CONTACT_US, FILENAME_CONDITIONS, FILENAME_SHIPPING, FILENAME_CREATE_ACCOUNT, FILENAME_UNSUBSCRIBE, FILENAME_SITE_MAP))) {
$show_categories = false;
} else {
$show_categories = true;
}
if ($show_categories == true) { //EOF PART 1 OF 2 FOR CAT SIDEBOX OFF ON SOME PAGES
//OTHER CODE
//BOF 2 OF 2 FOR CAT SIDEBOX OFF ON SOME PAGES
}
//EOF 2 OF 2 FOR CAT SIDEBOX OFF ON SOME PAGES
But adding FILENAME_MANUFACTURERS or FILENAME_MANUFACTURERS_ID to the list does not work. So I am guessing something else needs to be done???
hope someone can help me?
TIA