VirtueMart Forum

VirtueMart 1.1.x [ Old version - no longer supported ] => Themes & Layout Problems and Customization VM 1.1 => Topic started by: 8lebel on July 19, 2008, 09:57:52 am

Title: How to change the product name font size ???????
Post by: 8lebel on July 19, 2008, 09:57:52 am
Dear all,

I'm using VM 1.1.0 and jommla 1.0.15 and all working well except a litle thing.
When I browse the product, the product name is really to hight.

Have a look: http://www.ste-equip.fr/index.php?page=shop.product_details&flypage=flypage_images.tpl&product_id=1&category_id=2&option=com_virtuemart&Itemid=30

I thing the trouble is here, but I don't understand PHP ......

?>
<br style="clear:both;" />
<table border="0" style="width: 100%;">
  <tbody>
   <tr>
<?php  if( $this->get_cfg('showManufacturerLink') ) { $rowspan = 5; } else { $rowspan = 4; } ?>
     <td width="33%" rowspan="<?php echo $rowspan; ?>" valign="top"><br/>
        <?php echo $product_image ?><br/><br/><?php echo $this->vmlistAdditionalImages( $product_id, $images ) ?></td>
     <td rowspan="1" colspan="2">
     <h2><?php echo $product_name ?> <?php echo $edit_link ?></h2>
     </td>
   </tr>
   <?php if( $this->get_cfg('showManufacturerLink')) { ?>
      <tr>
        <td rowspan="1" colspan="2"><?php echo $manufacturer_link ?><br /></td>
      </tr>
   <?php } ?>
   <tr>

REALLY THANK YOU FOR YOUR HELP. JEAN-PHILIPPE
Title: Re: How to change the product name font size ???????
Post by: willowtree on July 19, 2008, 10:05:26 am
the product name is in a html h2 tag

<h2><?php echo $product_name ?> <?php echo $edit_link ?></h2>

it will use the h2 style set by your theme and/or template. You can either change the h2 style in a css file, firebug will help you work out which file, or change this to a different style, eg

<span class="productname"><?php echo $product_name ?> <?php echo $edit_link ?></span>

css

.productname {

}

hth
Title: Re: How to change the product name font size ???????
Post by: revporl on March 19, 2010, 17:33:08 pm
Where about is the php which needs amending? That's v straightforward, but how do I find it?
Title: Re: How to change the product name font size ???????
Post by: jenkinhill on March 20, 2010, 12:19:32 pm
In this case it was flypage_images.tpl - just look in the url of the page. See the manual.
http://virtuemart.net/documentation/Developer_Manual/Modifying_the_Layout.html