I have just modified my sites search module to use Googles custom search engine API. So far it is working quite well but annoyingly, it is revealing some issues with how Google is seeing and indexing some content on my site.
During some test searches using the API I notice that Google is returning some quite good results but it is including links and content from my Legal Module with search results which are in no way related to the search criteria.
I am assuming it is doing this as the legal module links are in the footer of every page.
In essence, what I need to be able to do is override the default
meta name="ROBOTS" content="INDEX, FOLLOW"
After a quick look at nukeSEO(dh) it seems it might be possible to do this by creating a class extender.
Creating the file;
includes/nukeSEO/dh/dhLegal_Module.php
And in this file us something like
Code:class dhLegal_Module extends dhclass {
function getHEAD() {
$meta['ROBOTS'] = array('name','NOINDEX','NOFOLLOW,0);
}
}
|
Does that look about right, even though the function getHEAD in it's default version doesn't seem to cater for ROBOTS