Forums / General Questions / Category image not a link?

Category image not a link?

Locked

Views: 984

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
15 Jan 2010, 6:34 PM
#1
ksookma avatar

ksookma

Zen Follower

Join Date:
Aug 2009
Posts:
212
Plugin Contributions:
1

Category image not a link?

Im sure there is an option somewhere but I cant seem to find it. I want to be able to click on my image at the top of the category pages to send me directly to the product imaged. Also need an alt tag for the images. Does anyone know how to do that?

https://www.ribbonsbaskets.com
1.3.8

15 Jan 2010, 6:52 PM
#2
gjh42 avatar

gjh42

Black Belt

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

Re: Category image not a link?

Do you mean the image in the individual category description? That is what you inserted in the category description textarea, so all you need to do is wrap link tags around it with the page destination, like this:

<a href="index.php?main_page=product_info&cPath=xx&product_id=yy"><img ... alt="Your Alt Text"></a>

15 Jan 2010, 7:01 PM
#3
ksookma avatar

ksookma

Zen Follower

Join Date:
Aug 2009
Posts:
212
Plugin Contributions:
1

Re: Category image not a link?

I used to put the images in the top description field but recently have moved it to the correct place. "category images" So now its not clickable because I dont know how to make it clikable.

I had to do this to change the layout properly.

15 Jan 2010, 7:06 PM
#4
gjh42 avatar

gjh42

Black Belt

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

Re: Category image not a link?

That could be tricky, because the link destination has to be customized for each category and cannot be automagic.
The simplest method might be adding a link with an id to each category description, and style the id to have height and width as appropriate and position: absolute; and locate it over the category image.