Author Topic: How to change the product name font size ???????  (Read 8414 times)

8lebel

  • Beginner
  • *
  • Posts: 8
How to change the product name font size ???????
« 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

willowtree

  • Full Member
  • ***
  • Posts: 542
    • Willow Tree Crafts
Re: How to change the product name font size ???????
« Reply #1 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
Please add your VM and Joomla Version to your signature to make it easier to help you:

Most of my code posted in the forum is for VirtueMart 1.0  -  not for 1.1

revporl

  • Beginner
  • *
  • Posts: 31
Re: How to change the product name font size ???????
« Reply #2 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?

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27426
  • Always on vacation
    • Jenkin Hill Internet
Re: How to change the product name font size ???????
« Reply #3 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
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

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

Currently using VM 3.4.3.10057 on Joomla 3.9.8 PHP 7.0.33
Testing VM .3.6.0.10075 on Joomla 3.9.8