Title: java script side widget problem
Last modified: August 31, 2016

---

# java script side widget problem

 *  [passegua](https://wordpress.org/support/users/passegua/)
 * (@passegua)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/java-script-side-widget-problem/)
 * If I add as a html side widget this code I get error, well this code interfere
   with the following codes, precisely doesn’t allow footer to display.
    Here the
   code I’d like to use as right side widget:
 *     ```
       <!--  ADVERTISEMENT TAG 160 x 600, DO NOT MODIFY THIS CODE -->
       <script type="text/javascript">
       <!--
       document.write('<iframe marginheight="0px" marginwidth="0px" frameborder="0" scrolling="no" width="160" height="600" src="http://optimized-by.simply.com/play.html?code=170107;61415;57339;0&from='+escape(document.referrer)+'"></iframe>');
       // -->
       </script>
       ```
   
 * Moreover this code doesn’t show at all:
 *     ```
       <script type="text/javascript">
       simply_publisher = 57339;
       simply_domain = 61415;
       simply_space = 170107;
       simply_ad_height = 600;
       simply_ad_width = 160;
       simply_callback = '';
       </script>
       <script type="text/javascript">
       var cb = Math.round(new Date().getTime());
       document.write('<scr'+'ipt type="text/javascript" src="'+ ('https:' == document.location.protocol ? 'https://' : 'http://') + 'optimized-by.4wnetwork.com/simply_loader.js?cb='+ cb +'"></scr' + 'ipt>');
       </script>
       ```
   
 * thanks

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

 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [10 years, 2 months ago](https://wordpress.org/support/topic/java-script-side-widget-problem/#post-6988709)
 * Try using a plugin to handle your JavaScript instead: [https://wordpress.org/plugins/custom-css-js/](https://wordpress.org/plugins/custom-css-js/)
 *  Thread Starter [passegua](https://wordpress.org/support/users/passegua/)
 * (@passegua)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/java-script-side-widget-problem/#post-6988763)
 * Many thanks for the suggestion, I’ll study how to use it.
    Mean while do you 
   know if that plugin could handle also side widget?

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

The topic ‘java script side widget problem’ is closed to new replies.

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

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [passegua](https://wordpress.org/support/users/passegua/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/java-script-side-widget-problem/#post-6988763)
 * Status: not resolved