Knowledge Base Article

How to add GoogleAdsense to my MediaWiki pages?

Once you have the AdSense code you can add it to Mediawiki following these steps:

1) Open skins/Monobook.php and get acquainted with the syntax for the different sections. This is the place to add your AdSense code.

For example, to add the google adsense code at the bottom of the pages, add the code right after:

                // Generate additional footer links
?>

After you make the modifications you need to open and resave your LocalSettings.php file. This will clear MediaWiki's parsercache and your changes will show correctly.

 



Rating

Please indicate if this article was helpful for you.

rating :  4.4 from 5
views :  732
votes :  8

Haven't found what you are looking for? Suggest an article HERE.

powered by

Valid XHTML 1.0 Strict Valid CSS!