• Resolved Sujit Thakur

    (@sujit_skt)


    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. ]

    <script id="mNCC" language="javascript">  medianet_width='250';  medianet_height= '250';  medianet_crid='772566825';  </script>  <script id="mNSC" src="https://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

    (@rkcorp)

    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

    (@sujit_skt)

    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

    (@rkcorp)

    did you try reenter and resave the script in theme option after the edit?

    Thread Starter Sujit Thakur

    (@sujit_skt)

    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

    (@rkcorp)

    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

    (@sujit_skt)

    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.