News:

Looking for documentation? Take a look on our wiki

Main Menu

Category titel H1 from H2

Started by DanielIIC, February 05, 2018, 18:13:12 PM

Previous topic - Next topic

DanielIIC

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

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

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

Original code is
<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

Hi,
thanks for your help!
looks like i was a bit confused. Worked perfectly.
thanks you again!
Daniel