Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / hide a bit of text and an image in description

hide a bit of text and an image in description

Started by mcpisik on 19 Jul 2012, 4:39 PM · Views: 469

Results 1 to 3 of 3
19 Jul 2012, 4:39 PM
#1
mcpisik avatar

mcpisik

Zen Follower

Join Date:
Jan 2007
Location:
Mount Maunganui, New Zealand
Posts:
417
Plugin Contributions:
0

Post #1 by mcpisik

Hi,
We have a bit of text and an image in our product description, that we delete each time an item is sold out.
When it's back in stock, we re-insert it.
Is there a way to comment it out as is done for code, rather than deleting it?

I also wonder if it would be seen by google as black hat stuff, if there is a way.
Ideas/thoughts?

19 Jul 2012, 5:56 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Post #2 by stevesh

No idea about the Google aspect, but I would wrap the text you're talking about in a div with a unique id name (<div id="temptext"> Your Text </div>) and then in the stylesheet when you don't want it to display: #temptext {display: none;}

19 Jul 2012, 6:49 PM
#3
mcpisik avatar

mcpisik

Zen Follower

Join Date:
Jan 2007
Location:
Mount Maunganui, New Zealand
Posts:
417
Plugin Contributions:
0

Post #3 by mcpisik

Perfect thank you.