Your Joomla site always comes with a default meta generator to show that your website is a Joomla site, and sometimes it will show its version as well. It is important to hide this for security measures if you do not want others to see your source code and know it is a Joomla site and what version it may be.
It is good to be aware that the changes you make will be overwritten when upgrading your Joomla version.
- Open your FTP program.
- Navigate to this file: (root directory)/libraries/joomla/document/html/renderer/head.php
- Open your head.php file with a Text Editor.
Look for the line of code that creates a function called getGenerator().
Adding 2 slash lines in front of the code will prevent the website from rendering it as code. So it’s basically removed, without removing it. It’s always safe to do the commenting method so you can always revert back to previous changes.
You can change this to any type of meta name you’d like. I changed my site to “author” with my name in the double quotes, removing everything else within the quotes first.
Congratulations! You now have full control of your header file, but remember you are able to edit most sections using your admin panel but it is good to know how to remove sections and where to find the actual file your header code is generated at.