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.
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.
Hi there,
Thanks for contacting us. Please follow the instructions.
https://pastebin.com/embed_js/pXk52WDW
-Thanks
Hi,
Removing all header contents also removes the error page formatting.
Is there any other way to just remove the generator meta tag content?
Please provide me the Joomla administrator access
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).
By the way, I found in the error.php class JDocumentRendererHead, which is deprecated since Joomla 3.5.
The class should now be JDocumentRendererHtmlHead.
We will fix it next update. Thanks