Forums / General Questions / How to change the text colour on Estimate Shipping popup box

How to change the text colour on Estimate Shipping popup box

Views: 1,452

Results 1 to 8 of 8
18 Jan 2013, 10:26 AM
#1
amyleew avatar

amyleew

Zen Follower

Join Date:
Jul 2009
Posts:
159
Plugin Contributions:
0

How to change the text colour on Estimate Shipping popup box

My estimate shipping popup box from the shopping cart view has brown text on a brown background. Is there a way to change the text colour for only that popup or change the background colour just for that area?

My text colour for pretty much all text on the site is brown and I really don't want to change that just so I can change the text colour in that popup. I'm hoping there is a way to do it without effecting other areas.

18 Jan 2013, 10:33 AM
#2
picandnix avatar

picandnix

Totally Zenned

Join Date:
Dec 2010
Location:
UK
Posts:
1,780
Plugin Contributions:
2

Re: How to change the text colour on Estimate Shipping popup box

amyleew:

My estimate shipping popup box from the shopping cart view has brown text on a brown background. Is there a way to change the text colour for only that popup or change the background colour just for that area?

My text colour for pretty much all text on the site is brown and I really don't want to change that just so I can change the text colour in that popup. I'm hoping there is a way to do it without effecting other areas.

The first person to reply to this is going to ask for a link to your site...
Could you post a link to your site?

18 Jan 2013, 11:00 AM
#3
amyleew avatar

amyleew

Zen Follower

Join Date:
Jul 2009
Posts:
159
Plugin Contributions:
0

Re: How to change the text colour on Estimate Shipping popup box

18 Jan 2013, 11:35 AM
#4
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: How to change the text colour on Estimate Shipping popup box

locate your stylesheet.css file and load into a text editor.

Somewhere around Line#47 you'll see:

p, td {
color: #5C492C;
font-family: Tahoma,Geneva,sans-serif;
font-size: 12px;
}

Edit the 'color' to suit your needs. Resave the file.

**IMPORTANT: This will almost certainly change the colour of the text in lots of other places too. **

If you wish to change the estimator text only you will need to

  1. Update your template file by locating the following line(s)
<tr class="">
  1. Change this to read something like
<tr class="shippingText">
  1. Add the following to one of your .css files (custom.css?)
    .shippingText {
    color: #XXXXXX; (where 'XXXXXX' is your RGB colour code (#000000 = black, #FFFFFF = white, etc)
    }

Cheers
Rod

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

18 Jan 2013, 12:52 PM
#5
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: How to change the text colour on Estimate Shipping popup box

amyleew:

I'm sorry. It is http://www.stampinstuff.com.au/

PS. Your International shipping cost chart is over 6 months old. There have been at least 3 or 4 price increases since then.

Cheers
Rod

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

22 Jan 2013, 11:19 PM
#6
amyleew avatar

amyleew

Zen Follower

Join Date:
Jul 2009
Posts:
159
Plugin Contributions:
0

Re: How to change the text colour on Estimate Shipping popup box

I would like to do the second option where I only change the colour for that one spot. Which file do I find <tr class=""> in? I'm not sure what template file means.

23 Jan 2013, 2:23 PM
#7
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: How to change the text colour on Estimate Shipping popup box

amyleew:

I would like to do the second option where I only change the colour for that one spot. Which file do I find <tr class=""> in? I'm not sure what template file means.

/template_default/templates/tpl_modules_shipping_estimator.php

Cheers
Rod

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

23 Jan 2013, 7:02 PM
#8
schoolboy avatar

schoolboy

Totally Zenned

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

Re: How to change the text colour on Estimate Shipping popup box

If you take a look at the page SOURCE CODE for the shipping estimator popup, you will see a few ID and CLASS elements. So in fact ANY of these can contain a style declaration.

<body id="popupShippingEstimator"> (HERE YOU COULD CREATE A WHITE BACKGROUND IMAGE)
<div class="shippingEstimatorWrapper biggerText">
<div id="shippingEstimatorContent">
<div class="cartTotalsDisplay important">
<br class="clearBoth" id="stBreak" />
<div class="buttonRow forward">
<td colspan="2" class="seDisplayedAddressLabel">
<span class="seDisplayedAddressInfo">
<th scope="col" id="seProductsHeading">
<th scope="col" id="seTotalHeading">Rates
<td class="cartTotalDisplay bold">
<td class="cartTotalDisplay">

20 years a Zencart User