How to Add JavaScript to WordPress Sidebars
If you are trying to monetize your blog using Google AdSense, or some other program that uses JavaScript for their links, keep in mind that some WordPress themes do not allow JavaScript in their sidebars. The Website Managers blog is one of those sites. I went looking for a plugin to handle that for me. What I did not realize was that one was already installed, waiting for me to use it.
The plugin I use for the banner ads is Max Banner Ads by MaxBlogPress. Looking around in there, I saw a rasio button that previously evaded me. By clicking that radio button, a JavaScript box opened up to add the Google AdSense. You can add not only that, but any JavaScript and many other codes too.
For instance, if you use the ClickBank ad manager, CBClicks, you can add that code too. Now I know there are other WordPress plugins that handle things such as rotating ads from various vendors. Those can be found by searching the WordPress plugin repository for things like, "sidebar widget" or "rotate ads".
For monetizing the site with Google AdSense or CBClicks though, Max Banner Ads by MaxBlogPress works just fine. You can add banner links, JavaScript, Flash and other custom code, right in the box. You can install it free. To activate, you need to register with your email address. When your ads show up, you will see a message from MaxBlogPress.
To remove that message, you need to purchase Max Banner Ads Pro. If you leave the message there, which does not look good on all sites, look inside the settings page, down towards the bottom where you will see a place to put a ClickBank affiliate code. When one is entered, the promotional message will be linked to that ClickBank ID. It is a good way to give away free software and get paid for upgrades.
Also check out My Favorite WordPress Plugins
Tags: CBClicks, Google AdSense, JavaScript, Max Banner Ads, MaxBlogPress
























































Keep up the good hard work man, this article has really blown me away ! Good stuff, recommended.
MASTODI REPORT
Thank you! I will continue adding more tips like this. Be sure to subscribe to the updates.
Nice article, keep up the good work. If you want to read more on this topic (understood) why not try BlogCop.
hello,
Thank you for the great quality of your website, every time i come here, i’m amazed.
have a nice day,
John McCormick
Hi, I found this blog post while searching for help with JavaScript. I’ve recently changed browsers from Google Chrome to IE. After the change I seem to have a problem with loading JavaScript. Everytime I browse page that needs Javascript, the page freezes and I get a “runtime error javascript.JSException: Unknown name”. I cannot seem to find out how to fix it. Any aid is greatly appreciated! Thanks