In some Joomla templates you can change the information in the <head> tags directly by going in the template and adding html code inside the <head> tags. However, some other templates have in the header this line of code:
<jdoc:include type=”head” />
which includes the header information from some file.
If you like to change a <meta> tag, directly in the template file, you should write this PHP code inside the scope of the <head> tags:
<?php $this->setMetaData(‘robots’, ‘noindex, nofollow’); ?>
which is equivalent with:
<meta name=”robots” content=”noindex, nofollow” />
Since I use this technique often, and I often forget about it, i decided to put it in my blog.