Hi
Please can you help i trying to edit the price colour and make it bold.
Thank you
Mark
Please can you help i trying to edit the price colour and make it bold.
Thank you
Mark
Are you talking about on the product page?
Hosting for Oc 2.x: Well tested on 2.03.1 including emails work correctly, cPanel Shared or WHM VPS, managed security, fast & reliable SSD drives, Raid 10 /4 disk redundancy, server locale - Texas, contact me to discuss further.
Active Member
Hi VictorVictorDrummond wrote:Are you talking about on the product page?
Yes sorry the one on the product page.
Thank you
Mark
There's many ways to do it and it partly depends what template you have and which method suits you best...twd247 wrote: Yes ... the one on the product page.
For example Oc 2.x default template places the price in <h2><?php echo $price; ?></h2> ...
So preferred method would be to specify in your stylesheet.css , something like:
h2 {
color: blue; [or specify exact color you want as color: #hexcode]
font-weight: bold; .... (OR font-weight: 700 [is bold] through to 900 [is even more bold])
}
....Which would of course affects all <h2> tags in other parts of the site...
You could also place that code directly into your template header file, but that's a pretty rough and ready way to do it.
Another way would be is in your catalog/view/theme/yourtheme/template/product/product.tpl file, about 1/4 of the way through, find reference to price, which in Oc2 default is: <h2><?php echo $price; ?></h2> , and change to:
<h2><span style="color:#blue;font-weight:bold"><?php echo $price; ?></span></h2>
I personally would always choose method 1, and indeed specify bold for <h1> through to <h6> for all... like this:
h1, h2, h3, h4, h5, h6 {
font-weight: 900;
}
Hosting for Oc 2.x: Well tested on 2.03.1 including emails work correctly, cPanel Shared or WHM VPS, managed security, fast & reliable SSD drives, Raid 10 /4 disk redundancy, server locale - Texas, contact me to discuss further.
Active Member
Who is online
Users browsing this forum: No registered users and 386 guests