Title: Javascript in Sidebar
Last modified: August 22, 2016

---

# Javascript in Sidebar

 *  Resolved [Sujit Thakur](https://wordpress.org/support/users/sujit_skt/)
 * (@sujit_skt)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/javascript-in-sidebar/)
 * Hi,
 * I am trying to put the below Javascript code in Sidebar
 * _[ Moderator note: code fixed. Please wrap code in the backtick character or 
   [use the code button](http://codex.wordpress.org/Forum_Welcome#Posting_Code).]_
 *     ```
       <script id="mNCC" language="javascript">  medianet_width='250';  medianet_height= '250';  medianet_crid='772566825';  </script>  <script id="mNSC" src="http://contextual.media.net/nmedianet.js?cid=8CUGWVR1C" language="javascript"></script>
       ```
   
 * I tried it with all the below plugins
 * HTML Javascript Adder
    Enhanced Text Widget Allow Javascript in Text Widgets
 * But none of them are able to make in work. I am not a hardcoder and still in 
   the learning phase.
 * Please confirm how to make the script work in my website.

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Theme Author [Richie KS](https://wordpress.org/support/users/rkcorp/)
 * (@rkcorp)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/javascript-in-sidebar/#post-5740311)
 * where did you put this code? in sidebar text-widget or theme option->ad setting-
   >right sidebar?
 * if text widget, by default the plugin should work.
    if the theme option, will
   not, use shortcoder plugin instead.
 *  Thread Starter [Sujit Thakur](https://wordpress.org/support/users/sujit_skt/)
 * (@sujit_skt)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/javascript-in-sidebar/#post-5740327)
 * I added the code directly in side widget. It shows only code same code in text
   form in sidebar.
 * I even edited the script as suggested in your FAQ
 * “For security reason, script type code is disable in theme options. to enable
   it without shortcoder plugin, open lib/functions/option-functions.php comment
   in line 534 like this
    //$newinput[$k] = wp_filter_post_kses($v);”
 * But still it is not working. 🙁
 *  Theme Author [Richie KS](https://wordpress.org/support/users/rkcorp/)
 * (@rkcorp)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/javascript-in-sidebar/#post-5740421)
 * did you try reenter and resave the script in theme option after the edit?
 *  Thread Starter [Sujit Thakur](https://wordpress.org/support/users/sujit_skt/)
 * (@sujit_skt)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/javascript-in-sidebar/#post-5740424)
 * Yes Richie, I tried again but I see only Text in the sidebar. I mean same code
   appear on the Front end of website. Please suggest what can be done.
 *  Theme Author [Richie KS](https://wordpress.org/support/users/rkcorp/)
 * (@rkcorp)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/javascript-in-sidebar/#post-5740429)
 * the above method will only apply to code you enter into theme option->ad setting
   but not wp own textwidget etc..
 * for the wp textwidget, you’ll need to consult the plugin author.
 * you could enter the script code in theme option->right sidebar ad and use the
   right sidebar ad item in wp-admin->widgets->
 *  Thread Starter [Sujit Thakur](https://wordpress.org/support/users/sujit_skt/)
 * (@sujit_skt)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/javascript-in-sidebar/#post-5740431)
 * I entered some other code and that is working fine. Thanks for this great theme.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Javascript in Sidebar’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/mesocolumn/1.6.5.1/screenshot.
   png)
 * MesoColumn
 * [Support Threads](https://wordpress.org/support/theme/mesocolumn/)
 * [Active Topics](https://wordpress.org/support/theme/mesocolumn/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/mesocolumn/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/mesocolumn/reviews/)

## Tags

 * [javscript](https://wordpress.org/support/topic-tag/javscript/)

 * 6 replies
 * 2 participants
 * Last reply from: [Sujit Thakur](https://wordpress.org/support/users/sujit_skt/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/javascript-in-sidebar/#post-5740431)
 * Status: resolved