Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / How to remove text links under images on subcategories?

How to remove text links under images on subcategories?

Views: 4,863

Results 1 to 16 of 16
12 Apr 2010, 6:31 PM
#1
spaz_tic avatar

spaz_tic

New Zenner

Join Date:
Nov 2009
Posts:
18
Plugin Contributions:
0

How to remove text links under images on subcategories?

Hi,

I'm trying to turn off the text links under the images for subcategories. I saw an earlier thread that said to just turn it off under CSS using display: none.

The only problem is, the image and the text link are both under
div class="categoryListBoxContents

If I set that to no display, won't the image disappear as well? Can anyone help me turn off just the text links?

Thanks,
st

Using 1.3.8a
upgraded from 1.3.6

12 Apr 2010, 6:43 PM
#2
schoolboy avatar

schoolboy

Totally Zenned

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

Re: How to remove text links under images on subcategories?

Put this at the bottom of the stylesheet.css

.categoryListBoxContents a {visibility:hidden;}
.categoryListBoxContents a img{visibility:visible;}

Make sure you put these declarations in in the sequence shown... One hides the entire link, including the image, and then the second one over-rides the declaration for the image, making it visible again.

13 Apr 2010, 2:22 AM
#3
spaz_tic avatar

spaz_tic

New Zenner

Join Date:
Nov 2009
Posts:
18
Plugin Contributions:
0

Re: How to remove text links under images on subcategories?

schoolboy,

You're a genius! I think I love you. Well, at least I admire you greatly!

Really. Thanks.

st

13 Apr 2010, 8:57 AM
#4
schoolboy avatar

schoolboy

Totally Zenned

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

Re: How to remove text links under images on subcategories?

spaz_tic:

I think I love you.

Are you a boy (:yuck:) or a girl (:bigups:) ?

14 Apr 2010, 5:56 AM
#5
spaz_tic avatar

spaz_tic

New Zenner

Join Date:
Nov 2009
Posts:
18
Plugin Contributions:
0

Re: How to remove text links under images on subcategories?

Dude, calm down. just a joke.

besides, I'm too old for ya!

;)

14 Apr 2010, 10:07 AM
#6
schoolboy avatar

schoolboy

Totally Zenned

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

Re: How to remove text links under images on subcategories?

spaz_tic:

Dude, calm down. just a joke.

besides, I'm too old for ya!

;)

Mine is a joke too! :D

3 Jun 2010, 1:17 AM
#7
klsi168 avatar

klsi168

New Zenner

Join Date:
Apr 2009
Posts:
15
Plugin Contributions:
0

Re: How to remove text links under images on subcategories?

thank you very much for the help in advance, but now the space is empty, so how do i make the gap smaller.

http://www.ready-to-fly.com/index.php?main_page=index&cPath=1

Kelvin

17 Jun 2010, 6:58 AM
#8
dimsumgurl avatar

dimsumgurl

Zen Follower

Join Date:
Dec 2009
Location:
Canada
Posts:
160
Plugin Contributions:
0

Re: How to remove text links under images on subcategories?

thanks you! this helped me too. I also have teh same problem as klsi168. How can we make the gap smaller?

thanks!

17 Jun 2010, 7:14 AM
#9
schoolboy avatar

schoolboy

Totally Zenned

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

Re: How to remove text links under images on subcategories?

You can use NEGATIVE values on padding and/or margins...

padding: 0 0 -10px 0;

Sometimes this works...

17 Jun 2010, 3:38 PM
#10
dimsumgurl avatar

dimsumgurl

Zen Follower

Join Date:
Dec 2009
Location:
Canada
Posts:
160
Plugin Contributions:
0

Re: How to remove text links under images on subcategories?

ohh okay. However, i was playing with all the values I thought would link to that but I couldn't find it... which code would that be to affect the padding of the sub categories?

15 Nov 2010, 2:01 PM
#11
simon127 avatar

simon127

New Zenner

Join Date:
Oct 2009
Posts:
17
Plugin Contributions:
0

Re: How to remove text links under images on subcategories?

Hi,
I have a similar problem to the above, but just to remove the line under the image and not the text. My site is http://www.preciouspetsofkent.co.uk/
Can anybody help please?

Many thanks in advance
Simon

15 Nov 2010, 2:30 PM
#12
gjh42 avatar

gjh42

Black Belt

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

Re: How to remove text links under images on subcategories?

Add to your stylesheet

.categoryListBoxContents a {text-decoration: none;}

15 Nov 2010, 2:34 PM
#13
simon127 avatar

simon127

New Zenner

Join Date:
Oct 2009
Posts:
17
Plugin Contributions:
0

Re: How to remove text links under images on subcategories?

Hi, gjh42

You are a star, taken about a week to get this sorted, many many thanks for your help.

I love this place.

thanks again
Simon

21 Apr 2011, 8:53 AM
#14
thannaree avatar

thannaree

Zen Follower

Join Date:
Dec 2010
Location:
Thailand
Posts:
304
Plugin Contributions:
1

Re: How to remove text links under images on subcategories?

Hello,

Same same, but just to remove the line under the image and not the line under the text. My site is ezistockDOTcom
Please?

Thanks!

21 Apr 2011, 12:16 PM
#15
gjh42 avatar

gjh42

Black Belt

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

Re: How to remove text links under images on subcategories?

Unfortunately, you can't do that. They are both part of the link and can't be controlled separately.

22 Apr 2011, 2:46 AM
#16
thannaree avatar

thannaree

Zen Follower

Join Date:
Dec 2010
Location:
Thailand
Posts:
304
Plugin Contributions:
1

Re: How to remove text links under images on subcategories?

Ah ok! Many thanks for your reply! I've installed IE9 and started using it, the link shows only under the text, but the image border has dissapeared. All shows correctly with Firefox.