[Mediawiki-l] Google Varification
Juliano F. Ravasi
ml at juliano.info
Sat Jul 11 22:20:41 UTC 2009
alan at yawez.com wrote:
> Hello. I have got the Google webmaster varification code, but I can't find where to put it.
> The code is "<meta name="verify-v1" content="NXh9CTPfqiWROxMl+wEosO794+dQZ984lvDpxTGghFs=" >"
> But on which page do I put it in?
Untested code, YMMV. Add to your LocalSettings.php:
function myCustomMetaTags( &$output, &$skin ) {
$output->addMeta( 'verify-v1',
'NXh9CTPfqiWROxMl+wEosO794+dQZ984lvDpxTGghFs=' );
return true;
}
$wgHooks['BeforePageDisplay'][] = 'myCustomMetaTags';
--
Juliano F. Ravasi ·· http://juliano.info/
5105 46CC B2B7 F0CD 5F47 E740 72CA 54F4 DF37 9E96
"A candle loses nothing by lighting another candle." -- Erin Majors
* NOTE: Don't try to reach me through this address, use "contact@" instead.
More information about the MediaWiki-l
mailing list