Yesterday evening I was busy with creating a 404 page for the Ultimelab template. But there was one remarkable thing.
There was at the top of the 404 article the first line: <h1>Artikel</h1> and next line was <h2>The page were you are looking for could not be found</h2>
But I could not understand were is that Artikel comming from.
So I renamed the default.php at the override directory "template/.../html\com_content/article/, so that the original default.php is used. Then the <h1>Artikel</h1> is not shown and is working as I expected
The next line comes from the override default.php:
if ($this->params->get('show_page_heading', 1)) :
The next line comes from the original default.php:
if ($this->params->get('show_page_heading')) :
But why is the override not correct working, because that comes from page_heading is one. I have written a MySQL script which has been going throug all the menu parameters and change show_page_heading when it has the value's "1" or 1 or "0" or 0 to "" (empty), but that part $this->params->get('show_page_heading', 1) returns still the value 1!! So I don't understand how it exactly and my feeling is that this is not correct working.
Due to SEO it is fine that there is only one <h1> tag on a page. I don not understand why Joomla has the feature show_page_heading added, because so far as I see and understand, the title of the article is enough.
So a while ago, I have made another modification to the override like this:
if ($params->get('show_title') && !($this->params->get('show_page_heading')) ) : ?>
<h1 class="boxname tlmbfoxname">
<?php else : ?>
<h2 class="boxname tlmbfoxname">
<?php endif; ?>
So if the page heading is used than this will be placed between <h1> tags and otherwise the article title.