Page 1 of 1
how to change text colours/styles?
Posted: Tue May 19, 2009 5:41 pm
by tifonet
Hi,
How do i change the text colours/styles in product details?
I especially want to change the price colour to make it stand out more, both within the product details and on the front page within 'latest products'.
I don't know which css file does this?
Re: how to change text colours/styles?
Posted: Wed May 20, 2009 10:00 am
by MikoElSuperbeasto
Well, you won't found any css for this product attributes. Go in your theme folder, template/product/product.tpl, and look for these lines:
Code: Select all
<tr>
<td><b><?php echo $text_price; ?></b></td>
<td><?php if (!$special) { ?>
<?php echo $price; ?>
<?php } else { ?>
<span style="text-decoration: line-through;"><?php echo $price; ?></span> <span style="color: #F00;"><?php echo $special; ?></span>
<?php } ?></td>
</tr>
You can simply do this..:
Code: Select all
<span style="text-decoration: line-through;color: #YOURCOLOR;"><?php echo $price; ?></span>
Thanks
Re: how to change text colours/styles?
Posted: Wed May 20, 2009 10:50 pm
by tifonet
thanks, i'll try that ....
Re: how to change text colours/styles?
Posted: Wed May 20, 2009 10:59 pm
by tifonet
included the 'colour' tag within special.tpl and product.tpl as you state, no difference.
even tried changing the 3 digit web palette colour code, still no change.
Re: how to change text colours/styles?
Posted: Tue Jul 20, 2010 3:23 am
by sully210
Maybe someone could help me out. I am trying to change the text color of the links in the categories module, and everywhere else for that matter, from blue to charcoal to match my template theme and cannot figure it out. Does anyone have specific instructions on doing it?
Thank you,
Sully
Re: how to change text colours/styles?
Posted: Tue Jul 20, 2010 4:18 am
by Moggin
Hi Sully
In the stylesheet, catalog/view/theme/YOUR-THEME/stylesheet/stylesheet.css look for:
Code: Select all
a, a:visited {
color: #1B57A3;
text-decoration: underline;
cursor: pointer;
}
All the links are styled from there: so you can just change the link color to any other color you wish.
You can style links individually in different places if you want to, eg #category ul a, but the link color and style otherwise default back to the above. Hope that helps
Re: how to change text colours/styles?
Posted: Tue Jul 20, 2010 7:36 pm
by sully210
You are awesome and thank you

Re: how to change text colours/styles?
Posted: Wed Jul 21, 2010 12:05 am
by Moggin
lol I'm not, but you're welcome
