Menü schliessen
Created: July 13th 2012
Last updated: May 1st 2020
Categories: Joomla
Author: Marcus Fleuti

Joomla :: Remove the h1 title "articles" for articles that are not linked with a menu - Entfernen des H1-Titels "Beiträge" bei Artikeln die in keinem Menü verlinkt sind -

Tags:  Joomla
Donation Section: Background
Monero Badge: QR-Code
Monero Badge: Logo Icon Donate with Monero Badge: Logo Text
82uymVXLkvVbB4c4JpTd1tYm1yj1cKPKR2wqmw3XF8YXKTmY7JrTriP4pVwp2EJYBnCFdXhLq4zfFA6ic7VAWCFX5wfQbCC

The Symptom

In Joomla, when  a new article is being created that is not linked with a blog or menu element it will show "Articles" (Beiträge) as a H1-Element on top of the page.

The solution

Edit the overlay default.php class and comment out the code that is responsible for this behaviour.

Notice

If you are using page titles on your site and have enabled them so that a h1-title is being automatically created for each article you cannot just comment out this code. Instead you'll need to assign these articles to a menu to be able to suppress the page title output with the joomla "show page title" option.

Howto

Edit the file

/components/com_content/views/article/tmpl/default.php

From line #24 you'll find this:

<h1>
<?php echo $this->escape($this->params->get('page_heading')); ?>
</h1>

Comment out the echo-function like this and save the file:

<h1>
<?php //echo $this->escape($this->params->get('page_heading')); ?>
</h1>

Done!