I posted this under general questions, but this is probably the better place.
Can anyone tell me how to disable the Categories sidebox on certain pages like the About Us or Privacy Policy pages?
Thanks
I posted this under general questions, but this is probably the better place.
Can anyone tell me how to disable the Categories sidebox on certain pages like the About Us or Privacy Policy pages?
Thanks
Look at css per page ... instructions in the /css/readme file
Zen-Venom Get Bitten
You can also control this with overrides on the sideboxes if you are more comfortable with code ...
Peek at the various sideboxes in:
/includes/modules/sideboxes
to see how this is done with many of them ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
Ajeh, can you be a little more specific... If you look at the following link it may be easier to explain.
I am trying to build out a Help Desk section. Basically, when you are on this page or any of the others I decide I do not want to show the categories sidebox.
http://74.52.136.194/~onlinefa/store...ayment_options
I simply want to show the Information box on the left (which I will later rename to Help Desk). I would like to do this only on certain pages, not the entire site.
Thanks again for your help.
You need to build some conditions as to when to show the sidebox or when not to ...
For example, in the categories sidebox you could copy the files to your templates and overrides directory as all good zenners do ...
Then add some code such as:
My example is based on the page names for where I am atPHP Code:$show_categories = true;
if (in_array($_GET['main_page'], array(FILENAME_LOGOFF, FILENAME_LOGIN, FILENAME_PRIVACY, FILENAME_CONTACT_US, FILENAME_CONDITIONS, FILENAME_SHIPPING))) {
$show_categories = false;
} else {
$show_categories = true;
}
if ($show_categories == true) {
// blah blah all code here that is already there
// blah blah all code here that is already there
// blah blah all code here that is already there
} // eof: $show_categories == true
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
Awesome... Thank you so much. I have got this working on localhost based on the code you provided.
Thanks again.![]()
You are most welcome ... glad that this custom code was able to work for you ...![]()
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!