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?
Thanks.
I had trouble with the meta tag method too, so I used the "add an HTML file" method. Instead of trying to get metadata on a page in the wiki all you have to do is create a new file with the name supplied by Google and insert it into your root directory.
-----Original Message----- From: alan@yawez.com [mailto:alan@yawez.com] Sent: Saturday, July 11, 2009 12:11 PM To: mediawiki-l@lists.wikimedia.org Subject: [Mediawiki-l] Google Varification
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?
Thanks. _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
alan@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';
mediawiki-l@lists.wikimedia.org