News:

Looking for documentation? Take a look on our wiki

Main Menu

How to change the font color and font size only in short descriptions

Started by todoro1, August 16, 2013, 14:23:54 PM

Previous topic - Next topic

todoro1

Hi, how to change the font color and font size only in short descriptions?
I use firebug, but i cannot find file to edit.

Im using joomla 2.5.6 and virtuemart 2.0.6


jenkinhill

Both Joomla 2.5.6 and VM 2.0.6 have known security issues so should not be used for live sites unless you want to invite hackers and possible data loss. Very embarrasing for a store and possibly expensive, too. See http://developer.joomla.org/security/news/563-20130801-core-unauthorised-uploads 

Looks like you have a commercial theme so the file will be in your-jooml-template/html/com_virtuemart/category/

Short desc display begins  <p class="product_s_desc">
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Maxim Pishnyak

You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

todoro1

Quote from: jenkinhill on August 16, 2013, 15:18:16 PM
Both Joomla 2.5.6 and VM 2.0.6 have known security issues so should not be used for live sites unless you want to invite hackers and possible data loss. Very embarrasing for a store and possibly expensive, too. See http://developer.joomla.org/security/news/563-20130801-core-unauthorised-uploads 

Looks like you have a commercial theme so the file will be in your-jooml-template/html/com_virtuemart/category/

Short desc display begins  <p class="product_s_desc">

Thanks for advice, I am aware of security vulnerabilities and i'll take care of it.

I guess this is the part that needs to be edited


<?php // Product Short Description
if(!empty($product->product_s_desc)) { ?>

<p class="product_s_desc">
<?php echo shopFunctionsF::limitStringByWord($product->product_s_desc40'...'?>
</p>
<?php ?>


but Im not very good at php, so I would appreciate more detail advice if someone has the time to help me.

Thanks anyway.


                  

jenkinhill

That is using the standard short desc class so all you need to do is append a suitable style to the end on your Joomla template css.

eg   .product_s_desc {color:#A5250E;}
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

todoro1

Quote from: jenkinhill on August 17, 2013, 10:43:41 AM
That is using the standard short desc class so all you need to do is append a suitable style to the end on your Joomla template css.

eg   .product_s_desc {color:#A5250E;}

Thanks a lot  ;D