This has been a curious question for a long time now on how to add AdSense code to your Joomla site. There are tons of modules and plugins that would do the trick of adding your AdSense code to Joomla site. You need to think over which one to use or should you be using them at all. After all this is just a piece of script that needs to be executed over one of the spots on your website. We have a Custom HTML module with the core Joomla, so, why would we need a seperate module / plugin to accomplish this.
Unable to display Google Adsense using Custom HTML Module
Well, there has been a lot of confusion on how to do it. Here are some of the most reported issues while using Custom HTML Module:
- I see blank display though I pasted the code in Custom HTML Module.
- I see blank display though I pasted the code using code layout in Custom HTML Module.
- The code simply disappears upon saving.
The Custom HTML Module that is accompanied with the Core Joomla is designed to execute the raw codes and scripts. Please Note: You need a Google AdSense account and Ad Code generated to follow the steps below. Click Here to see steps to generate Google Adsense Code.
In order to get this functioning, you need to carefully follow the following steps:
- Log on to the back end of your Joomla website with an Administrator account.
- Go to System > Global Configuration
- Change the Default Editor to ‘editor – no editor’.
- Go to Extensions > Modules
- Now click on New button to create a new module instance and select Custom HTML from the list.
- Paste the Google AdSense code here and configure the position and other options as required by you.
- Save & Close the Custom HTML module.
- Now go to System > Global Configuration & change the Default Editor back to what it was or an Editor of your choice.
- Now go to System > Clear Expired Cache and click on Clear Expired Cache button.
Go to the site’s front-end and verify whether your Google Ad is loading up.
Please Note: If you have generated the code few minnutes ago, please allow some time for Google to start pushing Ads on your site. It normally works instantly, however at times may take up to an hours time to start displaying Ads.
If you face any difficulty while deploying this module, drop me a line and I will be happy to help you.
Did you find it helpful? Drop a line and share it forward to help others. Have a nice day.