Educon Template Error Page - Disabling Generator Tag - Question | JoomShaper
SP Page Builder 6 is Here! Learn More →

Educon Template Error Page - Disabling Generator Tag

RL

Riku Lahteenmaki

Template 4 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.

0
6 Answers
Toufiq
Toufiq
Accepted Answer
Senior Staff 4 years ago #10325

Hi there,

Thanks for contacting us. Please follow the instructions.

https://pastebin.com/embed_js/pXk52WDW

-Thanks

0
RL
Riku Lahteenmaki
Accepted Answer
4 years ago #10388

Hi,

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

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 4 years ago #10390

Please provide me the Joomla administrator access

0
RL
Riku Lahteenmaki
Accepted Answer
4 years ago #10414

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).

0
RL
Riku Lahteenmaki
Accepted Answer
4 years ago #10421

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

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 4 years ago #10474

We will fix it next update. Thanks

0