Linelabox Support

Hello there! Welcome to Linelabox Support Forum. Post your question and our support specialists will help you. Look for the solution in the F.A.Q. first. Our support team is available for any questions or issues in the following working hours: Monday - Friday: 10:00 - 18:00.

Hello,

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.

--------------------------
Second thing.
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">

</h1>
<?php else : ?>
<h2 class="boxname tlmbfoxname">

</h2>
<?php endif; ?>


So if the page heading is used than this will be placed between <h1> tags and otherwise the article title.

Nico
Responses (0)
  • There are no replies here yet.
Your Reply

VirtueMart Admin Theme

VMADMINLAB

Responsive VirtueMart 3 Administrator Template

Download
JOIN NOW!

New Joomla! 3 Template

REVOLAB

Responsive Joomla 3 Template / VirtueMart 3 Theme

Template Demo
JOIN NOW!

Recent Discussions

In all Download Folders from my Download Arrea are only the html and the images ...
1 week ago 5
Dobrý den, mám u Vás zakoupený proff. package, vytvořil jsem si šablonu, ale pok...
1 week ago 1
Hi I get the following warning on the product page when using the Simple File Up...
1 week ago 1
Password proctected content
2 weeks ago 2

Who's Online

We have 193 guests and one member online

Linelabox.com is not affiliated with or endorsed by Open Source Matters or the Joomla Project. Joomla!® name is used under a limited license from Open Source Matters in the United States and other countries.
Copyright © 2014 Linelabox.com - Joomla! 3 / VirtueMart 3 Templates. All Rights Reserved.
Joomla! is Free Software released under the GNU General Public License. All other marks are the property of their respective owners.
LINELAB WEBDESIGN