Forums / Templates, Stylesheets, Page Layout / Remove Product Info/Detail Images?

Remove Product Info/Detail Images?

Locked

Views: 1,367

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
31 Aug 2009, 4:44 AM
#1
kmedia avatar

kmedia

New Zenner

Join Date:
Aug 2009
Posts:
40
Plugin Contributions:
0

Remove Product Info/Detail Images?

Is there a way to turn off product images on the product detail? Or do I have to manually edit the tpl_product_info_display.php file? I want to have the product thumbnail images available for category listings, featured products, etc, but for the actual product detail page I want to have something different, more like a banner. How would I do that? My thought is to paste html in the product description section that calls the banner. Does that sound like the best answer?

Thanks!

31 Aug 2009, 10:25 AM
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Remove Product Info/Detail Images?

kmedia:

Is there a way to turn off product images on the product detail?

Add this to the bottom of your stylesheet

#productMainImage {display: none;}

20 years a Zencart User

31 Aug 2009, 10:27 AM
#3
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Remove Product Info/Detail Images?

kmedia:

My thought is to paste html in the product description section that calls the banner. Does that sound like the best answer?

Nothing fundamentally wrong with this.. just understand that the process will be manual - each product description will require manual input of the relevant html.

20 years a Zencart User

31 Aug 2009, 4:33 PM
#4
kmedia avatar

kmedia

New Zenner

Join Date:
Aug 2009
Posts:
40
Plugin Contributions:
0

Re: Remove Product Info/Detail Images?

Excellent! Thank you for your reply! Wow, adding #productMainImage {display: none;} to the bottom of the stylesheet is much easier than what I was just digging around in, thanks for your help! :smile:

31 Aug 2009, 5:18 PM
#5
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Remove Product Info/Detail Images?

Many "switches" are located in the admin console, so always look there first to see if there is a "toggle" to render or hide the display (or function) of a particular element.

The "display: none" declaration is however, very useful for components and functions that are NOT toggled in admin.

Be careful how you use it though... Some <DIV ID's> and <DIV CLASSES> are shared with other pages... using "display: none" in a general stylesheet will give a sitewide result.

Clever use of Specific Stylesheets can help, though. See the README in the classic template's css folder for specific stylesheet configurations.

20 years a Zencart User