≡ Menu

How to Add HTML and Javascript to WordPress Sidebar

wordpress plugin logo

HTML-JavaScript Adder plugin allows you to add HTML and JavaScript to your wordpress sidebar without editing the sidebar.php file.This wordpress plugin is particularly useful when you want add advertisements like Google Adsense, Adbrite,Bidvertiser ,chitika or any other ad codes to your blog sidebar.Also you can embed flash into the sidebar with this wordpress plugin.

Installation of wordpress HTML/Javascript sidebar adder

  1. Download and extract the current version of the HTML-Javascript Adder.
  2. Transfer the entire HTML-Javascript Adder directory to your /wp-content/plugins/ directory
  3. Activate the plugin through the ‘Plugins’ menu in WordPress
  4. That’s it! You’re done.
  5. Now go to the widgets settings section and add the widget.
  6. Click edit in the widget and enter the "Title" and any text/javascript/HTML(which you want to add to sidebar eg. adsense code) in the "Text/Javascript/HTML" box you need.

 

wordpress sidear html javascript adder wp sidebar

The above screenshot shows the admin version of the wordpress sidebar plugin and the output produced.Download the wordpress HTML/Javascript sidebar adder plugin here.

Download HTML-Javascript Adder (Thanks Aakash Chakravarthy)

Comments on this entry are closed.

  • Aakash April 10, 2009, 7:04 am

    Thanks renjus for adding an info about my plugin in your blog.

  • renjith April 13, 2009, 4:39 pm

    @aakash
    Great time saver for many WP users.Looking for more great plugins from you.

  • Shankor Bhawal April 28, 2009, 3:11 pm

    Thank you renjus for info and akash for this plugin

  • michnme July 8, 2009, 4:06 pm

    Thanks for a great tool, I have been struggling to get a Javascript Widget onto my Wordpress Blog's sidebar and with your plugin it was a breeze. Great Great tool.

    My blog is http://www.tjomies.com/blog Go check it out, I would love feedback.

  • dwcouch September 28, 2009, 4:13 pm

    Renjus, I've recently updated WordpressMU to 2.8.4a. All of my blogs that already had more than 1 HTML/JS Adder Widgets still display those. However new blogs do not display more than 1 widget when I select more than 1 under settings.

    Can you help? Perhaps this is a permissions issue – what does the widget update to display multiples in the widgets admin?

    Thank You

  • jimmyltc October 15, 2009, 4:21 am

    Thanks renjus, really easy and fast to implement, just added to me site.

    http://mettablog.com/blog/

    Kindly comment for improvement. Tks/jimmyltc

  • faridgem June 21, 2011, 7:27 pm

    I am using this plugin its very helpful. thank you for giving us a nice post.

  • Anonymous December 28, 2011, 3:43 am

    Javascript Adder doesn't work in WP 3.3, all my sidebars are disabled as only ONE instance of Javascript Adder will work; multiple instances are ignored. To keep one instance, I put my 5 videos into the one instance. My code is clean,it comes out with random extra space ever 2nd video in Javascript Adder. So, I reduced it down to 2 videos, and it works, so I've lost 3 videos from my sidebar.

    Then I just had the nice surprise of discovering that regular widgets provided IN WordPress NO LONGER work in the sidebar when Javascript Adder is present, it corrupts not just the sidebar, but the entire web page. I am now faced with the choice of ZERO videos but my links, blogroll, categories will function if I eliminate Javascript Adder. OR: keep the videos and eliminate the most important parts of my sidebar.

    I HATE WORDPRESS. I am going back to regular code ASAP.

  • Mohinee March 4, 2012, 4:15 pm

    Thank you so much.