Post by twd247 » Fri Nov 20, 2015 5:49 am

Hi

Please can you help i trying to edit the price colour and make it bold.

Thank you
Mark

Image
http://www.flowcentre.co.uk


New member

Posts

Joined
Tue Aug 02, 2011 11:23 pm

Post by VictorDrummond » Fri Nov 20, 2015 6:55 am

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.


User avatar
Active Member

Posts

Joined
Sat Dec 15, 2012 12:41 pm
Location - On the balcony slammin' Margaritas

Post by twd247 » Fri Nov 20, 2015 7:26 am

VictorDrummond wrote:Are you talking about on the product page?
Hi Victor

Yes sorry the one on the product page.

Thank you
Mark

Image
http://www.flowcentre.co.uk


New member

Posts

Joined
Tue Aug 02, 2011 11:23 pm

Post by VictorDrummond » Fri Nov 20, 2015 12:22 pm

twd247 wrote: Yes ... the one on the product page.
There's many ways to do it and it partly depends what template you have and which method suits you best...

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.


User avatar
Active Member

Posts

Joined
Sat Dec 15, 2012 12:41 pm
Location - On the balcony slammin' Margaritas

Post by twd247 » Sat Nov 21, 2015 2:21 am

Thank you your a star.

Image
http://www.flowcentre.co.uk


New member

Posts

Joined
Tue Aug 02, 2011 11:23 pm
Who is online

Users browsing this forum: No registered users and 386 guests