VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: cheesydoodle on September 23, 2015, 22:39:33 PM

Title: First Category title is h1
Post by: cheesydoodle on September 23, 2015, 22:39:33 PM
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.
Title: Re: First Category title is h1
Post by: jenkinhill on September 23, 2015, 23:49:34 PM
That does not happen in VM3.0.10 with defualt VM templates.  http://forum.virtuemart.net/index.php?topic=128401.0
Title: Re: First Category title is h1
Post by: cheesydoodle on September 24, 2015, 00:09:13 AM
I am using commercial template destiny fx


Sent from my iPhone using Tapatalk
Title: Re: First Category title is h1
Post by: GJC Web Design on September 24, 2015, 12:57:26 PM
http://forum.virtuemart.net/index.php?topic=108212.0
Title: Re: First Category title is h1
Post by: cheesydoodle on September 27, 2015, 23:20:44 PM
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
Title: Re: First Category title is h1
Post by: GJC Web Design on September 28, 2015, 12:44:08 PM
as Jenks says this simply doesn't happen on a std. install

http://demo.virtuemart.net/

Title: Re: First Category title is h1
Post by: cheesydoodle on September 28, 2015, 13:32:24 PM
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
Title: Re: First Category title is h1
Post by: GJC Web Design on September 28, 2015, 14:47:13 PM
It can't be that complicated...  just dig in the code to see what's happening
Title: Re: First Category title is h1
Post by: cheesydoodle on September 28, 2015, 22:18:55 PM
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
Title: Re: First Category title is h1
Post by: GJC Web Design on September 28, 2015, 23:14:09 PM
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>