Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / Change the text color of the "Save: 17% off" line.

Change the text color of the "Save: 17% off" line.

26 Oct 2011, 7:47 PM
#1
dragonimpact avatar

dragonimpact

New Zenner

Join Date:
Feb 2008
Posts:
8
Plugin Contributions:
0

Post #1 by dragonimpact

Hello,

Which file do I alter to change the color of the saving line displayed to customers?

Example :
$29.99 <---- this has a strikethrough line. Reg Price
$24.99 <---- this is in bold. The Sale Price
Save: 17% off <---- this tells the savings percentage

On my website the Savings Percentage is impossible to see.

I would like to change it to a bright red.

See my site example :
http://dragonimpact.com/biz/index.php?main_page=index&cPath=83_333

Thank you,

Alex.

26 Oct 2011, 10:33 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #2 by ajeh

Looks like the Normal Price:

<span class="normalprice">$119.99 </span>

and the percentage:

<span class="productPriceDiscount"> <br> Save: 8% off </span>

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

30 Nov 2011, 1:25 AM
#3
wavmixer avatar

wavmixer

New Zenner

Join Date:
Dec 2009
Posts:
31
Plugin Contributions:
0

Post #3 by wavmixer

Open the css file located at:
includes/templates/theme366/css/stylesheet.css

Here you will find a line:
.productPriceDiscount that you can change the color.

30 Nov 2011, 3:34 AM
#4
mikestaps avatar

mikestaps

Zen Follower

Join Date:
Aug 2010
Location:
Grand Blanc, MI
Posts:
305
Plugin Contributions:
1

Post #4 by mikestaps

A great way to quickly see what CSS rule is effecting a certain item is to:

  1. Open your page in chrome.
  2. Right click on the item you want to look at (in this case the percentage off) and choose "Inspect element"

The active code for your page will show at the bottom of the page and the CSS rules will be on the right of that, it even tells you exactly what line of the CSS file...