Educon template error page - disabling generator tag - Forum | JoomShaper
Staff replied Templates

Educon template error page - disabling generator tag

Asked by Riku Lahteenmaki 5 years ago Last activity 5 years ago

How do I remove the generator meta tag in the 404 error page?
In the root directory index.php this one works:

$this->setGenerator(null);

But placing it in the error.php, the generator tag is still showing in the source code.

6 replies

Riku Lahteenmaki Asked this

Hi,

Removing all header contents also removes the error page formatting.
Is there any other way to just remove the generator meta tag content?

Toufiq Senior Staff

Please provide me the Joomla administrator access

Riku Lahteenmaki Asked this

I solved this by making a static xhtml file from the rendered 404 page and removing the generator meta tag from the code. Then I named this file as error.php (after renaming the original error.php of the template).

Riku Lahteenmaki Asked this

By the way, I found in the error.php class JDocumentRendererHead, which is deprecated since Joomla 3.5.
The class should now be JDocumentRendererHtmlHead.

Toufiq Senior Staff

We will fix it next update. Thanks

Log in to reply.