Author Topic: Category titel H1 from H2  (Read 497 times)

DanielIIC

  • Beginner
  • *
  • Posts: 26
  • A beginner
Category titel H1 from H2
« on: February 05, 2018, 18:13:12 pm »
Hi,
Webpage:https://www.mementi-urnen.de/shop
Joomla! 3.8.3
VirtueMart 3.2.12

How can I change the header setting on the category page? I have not found a setting where i can change it so i assume it is hard coded.
I understand that i can change the header of each category in the category overview in the category.php in subfolder: httpdocs\components\com_virtuemart\sublayouts
There a hard coded "H2" can be found, the related template overwrite is something i found as well.

But what is the right file for the category page?
For example: https://www.mementi-urnen.de/shop/holzurnen
In the template folder category - default, i found the following:

if (empty($this->keyword) and !empty($this->category)) {
   ?>
<div class="category_description">
   <?php echo $this->category->category_description; ?>
</div>
<?php

but unfortunately i don't understand enough PHP to follow the call to the right code.  Or am i completely wrong?

thanks for your help
Daniel

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 3399
  • Joomla & Virtuemart addon developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 &amp; 3.0.x.y
Re: Category titel H1 from H2
« Reply #1 on: February 05, 2018, 18:27:37 pm »
httpdocs\components\com_virtuemart\sublayouts
Is the original path, if you have a template override, it's
httpdocs\templates\YOURTEMPLATE\html\com_virtuemart\sublayouts
BUt i mean that your H2 is in folder httpdocs\templates\YOURTEMPLATE\html\com_virtuemart\category\ if you have an override

DanielIIC

  • Beginner
  • *
  • Posts: 26
  • A beginner
Re: Category titel H1 from H2
« Reply #2 on: February 05, 2018, 19:36:07 pm »
Hi,
thanks for your quick answer,
the folder:
httpdocs\templates\kallyas\html\com_virtuemart\category
has 2 php files:
default.php  and categories.php
categories.php does not seem to be right and the default.php shows the code below.

..kallyas\html\com_virtuemart\sublayouts  has 21 files and i could not find the right one used when displaying only one category.
looking in the code in the browser is states:

<div class="category_description">
   </div>
<div class="browse-view">
<h2 class="m_title">Category Name </h2>

so with the "category_description" i cant be that fare, right?
Where is the 
<?php echo $this->category->category_description; ?>
referring to? which file?

Daniel

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 3399
  • Joomla & Virtuemart addon developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 &amp; 3.0.x.y
Re: Category titel H1 from H2
« Reply #3 on: February 05, 2018, 21:57:17 pm »
Original code is
Code: [Select]
<h1><?php echo vmText::_($this->category->category_name); ?></h1>And is YOURSITE/components/com_virtuemart/views/category/tmpl/default.php
So in your template
httpdocs\templates\kallyas\html\com_virtuemart\category\default.php
If you dont changed the default layout

DanielIIC

  • Beginner
  • *
  • Posts: 26
  • A beginner
Re: Category titel H1 from H2
« Reply #4 on: February 09, 2018, 20:31:03 pm »
Hi,
thanks for your help!
looks like i was a bit confused. Worked perfectly.
thanks you again!
Daniel