News:

Looking for documentation? Take a look on our wiki

Main Menu

First Category title is h1

Started by cheesydoodle, September 23, 2015, 22:39:33 PM

Previous topic - Next topic

cheesydoodle

i have joomla 3, virtuemart 3. the problem I am having is in a row of 4 categories the first title is showing as h1 and the rest are h2. I would like the first to be h2 but I can't find how to do it. Shouldn't they all be the same? I have attache an image of what I mean. adding images for the categories doesn't change it.

jenkinhill

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

cheesydoodle

I am using commercial template destiny fx


Sent from my iPhone using Tapatalk

GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

cheesydoodle

I am using virtuemart 3.0.10 my template provider say this

"This is not a template related question. I mean, the Header tags in Virtuemart are not dependent of the template. Just for test, please set Protostar as your default template and you will see that the VM Headers are still H1.

The Header Tags in Virtuemart are hardcoded in the VM template files. You need to edit those files. But the best thing is to open a new Discussion in the VM forum and ask them which files exactly you should edit."
Is there any help you can give me please


Sent from my iPhone using Tapatalk

GJC Web Design

as Jenks says this simply doesn't happen on a std. install

http://demo.virtuemart.net/

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

cheesydoodle

Any suggestions? Should I reinstall? I can't use default VM template as it is on an existing site


Sent from my iPhone using Tapatalk

GJC Web Design

It can't be that complicated...  just dig in the code to see what's happening
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

cheesydoodle

The template that I use (DestinyFX) does not contain any VM styling. It does not come with any VM template overrides or CSS. Therefore it uses the default VM templates/view files and CSS. Please let me know which VM file I should modify (and create a template override for) in order to change the H1 tag to H2. It is totally template independent, the same issue is reproducible with the default Joomla 3 template - Protostar

GJC Web Design

you must have some styling plugin operating on it

the code in the std template components\com_virtuemart\sublayouts\categories.php  is a hard coded h2

     // Show Category ?>
    <div class="category floatleft<?php echo $category_cellwidth $show_vertical_separator ?>">
      <div class="spacer">
        <h2>
          <a href="<?php echo $caturl ?>" title="<?php echo vmText::_($category->category_name?>">
          <?php echo vmText::_($category->category_name?>
          <br />
          <?php // if ($category->ids) {
            
echo $category->images[0]->displayMediaThumb("",false);
          
//} ?>

          </a>
        </h2>
      </div>
    </div>
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation