New Zenner
- Join Date:
- Nov 2007
- Posts:
- 78
- Plugin Contributions:
- 0
Remove Banner on Product Detail Page only?
Is there a way to remove the header banner (I use Position 3) on only the Product Detail Page?
Carol
eBooks for Teachers
Views: 1,102
New Zenner
Is there a way to remove the header banner (I use Position 3) on only the Product Detail Page?
Carol
eBooks for Teachers
Oba-san
Using your templates and overrides, you could customize the code in the:
/includes/templates/your_templates_dir/common/tpl_main_page.php
if (!isset($_GET['products_id']) && SHOW_BANNERS_GROUP_SET3 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET3)) {
Linda McGrath
If you have to think ... you haven't been zenned ...
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!
New Zenner
Thanks for the reply! I want to keep it on the main page, tho...just take it off the Product Detail Page. Is this the right file? And what would I do to that line of code?
Carol
eBooks for Teachers
Oba-san
That code that I posted should allow the Banner to show, except when there is a products_id in the URL ...
Linda McGrath
If you have to think ... you haven't been zenned ...
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!
New Zenner
New Zenner
Hi I am also trying to disable the banner purely for the product page but I use position 2 - tried changing the code to read SHOW_BANNERS_GROUP_SET2 but just not working any ideas?:blink:
Also not sure if I putting it in the right place in the file!
Thanks
New Zenner
Sorry - answered myown question - I had moved Banner Set 2 to my tpl_header! Doh!
The code now works but breaks something else - Never mind!:lamo:
Tell staff why this post should be reviewed.