Forums / Templates, Stylesheets, Page Layout / Hide Category images on product pages

Hide Category images on product pages

Locked

Views: 4,103

Results 1 to 14 of 14
This thread is locked. New replies are disabled.
19 Jul 2007, 3:30 PM
#1
bvrettski avatar

bvrettski

New Zenner

Join Date:
Jul 2007
Posts:
33
Plugin Contributions:
0

Hide Category images on product pages

How do I hide the thumbnail category images on product pages?

20 Jul 2007, 7:25 AM
#2
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,883
Plugin Contributions:
20

Re: Hide Category images on product pages

admin --> Configuration --> Product Listing

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

21 Jul 2007, 2:35 PM
#4
bvrettski avatar

bvrettski

New Zenner

Join Date:
Jul 2007
Posts:
33
Plugin Contributions:
0

Re: Hide Category images on product pages

Here is the advice that worked for me:

You are actually talking about the product info page, not product listing.
Try these (lots of possible combinations):

Configuration > Product Info >

Previous Next - Button and Image Status 0
Previous Next - Navigation Includes Category Position 1
Previous Next - Navigation Includes Category Name and Image Status 1
Previous Next - Navigation Bar Position 1
Previous Next - Button and Image Settings

15 Aug 2007, 4:05 AM
#5
mellonade avatar

mellonade

New Zenner

Join Date:
Apr 2007
Posts:
69
Plugin Contributions:
0

Re: Hide Category images on product pages

Hi- im actually having trouble getting my category images off my product listing pages. i went to configuration > product listing > Sub Categories Image AND Include Product Listing Top Categories Image and set both to false, yet still theyre showing up on the product listing pages.

i just transferred my store from one server to another; on the previous server i had successfully turned off the category images on the product listing pages, so im not sure why exactly theyre showing up now on the new server. thought i'd share that bit of info just in case it mattered.

url: http://www.bridgetbullen.com/store/index.php?main_page=index&cPath=1

19 Aug 2007, 6:39 AM
#6
mellonade avatar

mellonade

New Zenner

Join Date:
Apr 2007
Posts:
69
Plugin Contributions:
0

Re: Hide Category images on product pages

any ideas? :(

19 Aug 2007, 9:17 AM
#7
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,883
Plugin Contributions:
20

Re: Hide Category images on product pages

I take it you've gone to Admin --> Configuration --> Product Info and turned off the "Previous Next - Navigation Includes Category"?

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

19 Aug 2007, 4:35 PM
#8
mellonade avatar

mellonade

New Zenner

Join Date:
Apr 2007
Posts:
69
Plugin Contributions:
0

Re: Hide Category images on product pages

dbltoe:

I take it you've gone to Admin --> Configuration --> Product Info and turned off the "Previous Next - Navigation Includes Category"?

Hm, that was already off, actually. But thanks for the suggestion.

I realize I might not have been clear on my problem- my category image thumbnail is showing up on my product listing pages (not product info).

19 Aug 2007, 5:54 PM
#9
mellonade avatar

mellonade

New Zenner

Join Date:
Apr 2007
Posts:
69
Plugin Contributions:
0

Re: Hide Category images on product pages

because im pressed for time, i went around the ideal admin tools and tinkered with the template file. in tpl_index_product_list.php i removed the following code near line 17:

<h1 id="productListHeading"><?php echo zen_image(DIR_WS_IMAGES . zen_get_categories_image($current_category_id), zen_get_categories_name($current_category_id), HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT, ' align="middle"' ) . '<br />' . $breadcrumb->last(); ?></h1>

i felt comfortable doing this because the lines i deleted weren't even in the template_default/tpl_index_product_list.php file to begin with!

also noteworthy: i tried using these css workarounds:
#productListHeading img {display:none} and
#productListHeading img {height:0; width:0}

the first method got rid of the image, but it left a clear space gap above the category name. so i then tried the second method, and that gave me the same result. so thats why i ended up just deleting the php above.

19 Aug 2007, 9:07 PM
#10
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Hide Category images on product pages

I think you were too specific in your css. According to the code you removed, the image is inside an <h1>; removing the image won't remove the <h1>. After the image, there is a <br /> and the category name output; the <br /> is still there with the image gone, too.
Try

#productListHeading {display:none}

to suppress the whole heading without code changes.
If you want the category name, you might try

#productListHeading img, #productListHeading br {display:none}

19 Aug 2007, 10:38 PM
#11
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,684
Plugin Contributions:
0

Re: Hide Category images on product pages

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

5 Sep 2007, 11:42 AM
#12
actorxfactor avatar

actorxfactor

New Zenner

Join Date:
Aug 2007
Posts:
84
Plugin Contributions:
0

Re: Hide Category images on product pages

I've managed to hide my category images on IE but Firefox still displays!
Any ideas?

3 Jan 2008, 3:17 AM
#14
tfgz avatar

tfgz

New Zenner

Join Date:
Aug 2006
Posts:
33
Plugin Contributions:
0

Re: Hide Category images on product pages

Admin > Configuration > Product Listing > Include Product Listing Sub Categories Image = False