Title: Custom Javascript does not execute
Last modified: August 31, 2016

---

# Custom Javascript does not execute

 *  Resolved [Hagelslag](https://wordpress.org/support/users/hagelslag/)
 * (@hagelslag)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/custom-javascript-does-not-execute/)
 * Hi,
 * First of all, the Custom Facebook Feed is a great plug-in.
 * I am, however, having a bit of an issue with the custom Javascript (under the
   Misc tab). I’ve copy/pasted the Javascript for the basic slideshow (taken from
   the plug-in’s FAQ), and I’ve added the corresponding class=’slideshow’ to the
   shortcode in my PHP file:
 * <?php echo do_shortcode(‘[custom-facebook-feed class=”slideshow” num=4]’); ?>
 * But nothing happens, i.e. the JavaScript does not execute; instead the Facebook
   feed is displayed as it always was, i.e. without a slideshow.
 * In fact, when I replace the JavaScript code for the slideshow by the single statement:
 * alert(‘Hello’);
 * the alert does NOT appear upon loading the page, so it appears that the custom
   JavaScript is simply always ignored. (And yes, I do press the Save button).
 * I’m aware that the problem may well be of my own doing, but I’ve no idea what
   I could be doing wrong…
 * Thanks for any and all replies!
 * Best regards from Holland,
    Hagelslag.
 * [https://wordpress.org/plugins/custom-facebook-feed/](https://wordpress.org/plugins/custom-facebook-feed/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [smashballoon](https://wordpress.org/support/users/smashballoon/)
 * (@smashballoon)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/custom-javascript-does-not-execute/#post-6952256)
 * Hey Hagelslag,
 * It sounds like the plugin’s JavaScript file may not be being included in your
   page. Could you try #2 in [this FAQ](https://smashballoon.com/the-plugins-css-and-javascript-files-arent-being-included-in-my-page/)
   and let me know whether it resolves the issue for you?
 * If it doesn’t then [check whether your page has any JavaScript errors](https://codex.wordpress.org/Using_Your_Browser_to_Diagnose_JavaScript_Errors)
   on it which might be preventing the JavaScript from working.
 * Let me know whether that resolves the issue for you, and I hope you’re having
   a good weekend!
 * John

Viewing 1 replies (of 1 total)

The topic ‘Custom Javascript does not execute’ is closed to new replies.

 * ![](https://ps.w.org/custom-facebook-feed/assets/icon-256x256.png?rev=2700775)
 * [Smash Balloon Social Post Feed - Simple Social Feeds for WordPress](https://wordpress.org/plugins/custom-facebook-feed/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-facebook-feed/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-facebook-feed/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-facebook-feed/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-facebook-feed/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-facebook-feed/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [smashballoon](https://wordpress.org/support/users/smashballoon/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/custom-javascript-does-not-execute/#post-6952256)
 * Status: resolved