How to Add Google Adsense Ads Inside Joomla Articles
| Joomla - Joomla How to |
In becoming familiar with the Joomla content management system, and Google's adsense, There is a nice adsense plugin for adding google ads to the left and right side of your blog, but there apparently isn't an easy way to place Google ads inside your Joomla articles.
However I have discovered a way to do this. Its a bit on the coding side of things, but not bad, really! Now I am assuming you are somewhat familiar with the Joomla concent management system, and already have a google Adsense account, and you already know how to get your code for your google ads.
OK, the first thing you do, is login to your Joomla administrator panel, and click on site then Global Configuration.
Once you are at the Global Configuration screen, you need to change the Default WYSIWYG Editor to
Editor – No Editor.
Here is a screen shot:
Then click the Save button. Now its time to add the Google Adsense code to your article. For me, the best way to do this is to have a second “preview” browser up to look at your article that you want to put google adsense into.The reason is that what you will be looking at is the raw html code of your article. That means there is no formatting, and there will be all sorts of strange looking code type stuff in there.
So now mouseover Content then click on Article Manager. Then select your article that you want to add your google Adsense code to, and open it up to edit it. Notice that the editor screen doesn't have the pretty formatting anymore. No worries! It's still there. The highlighted code below is the inserted google Adsense code in my article.
What you are looking at is raw html code. One thing I have discovered. You can't have any extra spaces in your html code inside the joomla editor (like the first line of the highlighted code in the example above). Otherwise your google adsense code won't show up in your article. Now go back to your “preview” browser and select the location where you want to place your google ad at. You must be careful and not break up any html tags! This is very important!
If you would like to see the end result of inserting a google add with this method, here is the actual article this code is used in.
OK, I hope this helped you out!
-- Mike
This article was originally posted on www.mikestechblog.com Any reproduction on any other site is prohibited and a violation of copyright laws.


