Title: Javascript Recall in Widget Not Working
Last modified: February 17, 2018

---

# Javascript Recall in Widget Not Working

 *  [webadmin2000](https://wordpress.org/support/users/webadmin2000/)
 * (@webadmin2000)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/javascript-recall-in-widget-not-working/)
 * Hello,
 * I followed your directions and am finding that my Javascript is still not working/
   resolving when used in a widget. I made a page where I added my script as a value
   assigned to CODE1 as the name in the custom fields, whitelisting the script when
   prompted via Wordfence. I then headed over to my widgets and checked “add widget_content
   filter” saving that before dragging in a text field and placing %CODE1% in the
   Widget Logic field, then hitting save. I don’t see anything different in my widget
   when I refresh the page. The script I’m using is a bit complex and has notations
   throughout as reminders for what variables can be adjusted. This is to loop a
   portion of a full video with muted sound etc. The script by itself works fine(
   tested it in an HTML doc). Any thoughts as to why it wouldn’t be working in my
   scenario? Am I doing something wrong/missing a step?

Viewing 1 replies (of 1 total)

 *  Plugin Author [David Artiss](https://wordpress.org/support/users/dartiss/)
 * (@dartiss)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/javascript-recall-in-widget-not-working/#post-10068964)
 * Hi,
 * Have you tried viewing the same script on a post or page first? I’m wondering
   if the script is working correctly. So, add it as a custom field as before but
   now, in the post or page, place %CODE1% in the editor and see if that works. 
   If it doesn’t, it’s probably your script. If it does, let me know.

Viewing 1 replies (of 1 total)

The topic ‘Javascript Recall in Widget Not Working’ is closed to new replies.

 * ![](https://ps.w.org/simple-embed-code/assets/icon.svg?rev=3073981)
 * [Code Embed](https://wordpress.org/plugins/simple-embed-code/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-embed-code/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-embed-code/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-embed-code/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-embed-code/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-embed-code/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [David Artiss](https://wordpress.org/support/users/dartiss/)
 * Last activity: [8 years, 3 months ago](https://wordpress.org/support/topic/javascript-recall-in-widget-not-working/#post-10068964)
 * Status: not resolved