How to build your own Joomla Adsense Module?

First of all, you don’t need to build your own Joomla Adsense Module you can use a module type already found in the Joomla Core: custom HTML module.  I have seen many people developing AdSense Modules but the issue here is that you don’t need to install nothing additional in order to get Adsense at your site.

I built a time ago a plugin for Joomla to insert adsense inside the article content but this is another story.

The tricky part here is how to insert the javascript generated from your Google account.  This is easy and we will continue with a step by step guide to get your own Joomla Adsense Module.

  1. Your first step will be to deactivate your Joomla default WYSIWYG editor, so, go to your administrator control panel and click on => Site =>Global configuration.  Look for the parameter: Default WYSIWYG Editor and change it to “Editor – no editor”.  Save your preferences.
  2. Now that you have the editor deactivated we are going to add a new module to our site.  Go to => Extensions => Module manager and click the New icon.
  3. Select Custom HTML and click next.
  4. Add a title, enable the module and select your desired position.
  5. In the custom output box paste the code you got from your Google account.
  6. Click save and that’s it.  You have your own Joomla Adsense Module.

Finally don’t forget to activate again your Default WYSIWYG Editor.

Post a Comment

Your email is never shared. Required fields are marked *

*
*