Author Topic: How to locate element.style  (Read 2286 times)

remkoo

  • Beginner
  • *
  • Posts: 10
How to locate element.style
« on: July 29, 2011, 23:07:39 pm »
I am working for a customer on a VM-webshop. On the a product browse (per category) page the product name font is bold, here.

Naturally I don't want that, but can't change it in the applicable css files since an element.style overrules it.

It says:
element.style {
font-size: 16px;
font-weight: bold;
}

So the code is:
<tbody>
<tr>
<td>
<div class="browseProductContainer">
<h2>
<a href="/webanders/index.php?page=shop.product_details&flypage=flypag e.tpl&product_id=5&category_id=14&option=com_virtu emart&Itemid=16" style="font-size: 16px; font-weight: bold;">Aluminium Vaas 14cm</a>
</h2>

Since I cannot find this code anywhere, I presume it's being loaded with some kind of function.
Some text has been written about it here already, but none about who to locate this specific element creation.

Does anybody know where it is or how to start locating it?

Thanksalot!

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10376
  • VirtueMart Version: 3+
Re: How to locate element.style
« Reply #1 on: July 30, 2011, 00:06:42 am »
what theme are you using?

are you sure the code is not in the browse template?
J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27577
  • Always on vacation
    • Jenkin Hill Internet
Re: How to locate element.style
« Reply #2 on: July 30, 2011, 11:05:21 am »
Firebug tells me it is an in-line style in your browse template. eg in browse_2.php you will find:

Code: [Select]
<h2>
  <a style="font-size:16px; font-weight:bold;" href="<?php echo $product_flypage ?>"><?php echo $product_name ?></a>
  </h2>

/components/com_virtuemart/themes/default/templates/browse/

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.6.8 10204 on Joomla 3.9.13 PHP 7.0.33

remkoo

  • Beginner
  • *
  • Posts: 10
Re: How to locate element.style
« Reply #3 on: July 30, 2011, 11:27:59 am »
Hi,

Thanks for helping out.

But actually, that's just it: I'm using browse_3 as a template, but there the coding says:
Code: [Select]
<div class="browseProductContainer">
  <h2>
  <a style="font-size:16px; font-weight:[b]normal[/b]; " href="<?php echo $product_flypage ?>"><?php echo $product_name ?></a>
  </h2>

While the Product title (as h2) is still showing up bold! The element style thus is retrieved elsewhere, but where?
Text from the Joomla forum:

Quote
element.style refers to an inline style. This is something embedded in the html code for the element not in your css file.

 rgds Remko.