Title: Embedded javascript code not working
Last modified: August 21, 2016

---

# Embedded javascript code not working

 *  [Imenicaa](https://wordpress.org/support/users/imenicaa/)
 * (@imenicaa)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/embedded-javascript-code-not-working/)
 * Hello folks!
 * I have a small JS snippet from Shopify that is used for embedding their store
   into WP page.Code goes like this:
 *     ```
       <script type="text/javascript">
         var ShopifyStoreConfig = {shop:"store.myshopify.com", collections:[14356361]};
         (function() {
           var s = document.createElement('script'); s.type = 'text/javascript'; s.async = true;
           s.src = "//widgets.shopifyapps.com/assets/shopifystore.js";
           var x = document.getElementsByTagName('script')[0]; x.parentNode.insertBefore(s, x);
         })();
       </script>
       <noscript>Please enable javascript, or <a href="http://store.myshopify.com">click here</a> to visit my <a href="http://www.shopify.com/tour/ecommerce-website">ecommerce web site</a> powered by Shopify.</noscript>
       ```
   
 * I have tried adding that code to the page via txt view, that didnt worked, so
   i created new template and pasted the code there, and again, it isnt working.
 * When the source code is checked, JS snippet is there, but not working/showing
   anything…
 * Any advices?
    Link to the page is [http://remysoft.wsoa.biz/store/](http://remysoft.wsoa.biz/store/)
 * Thank you so much

Viewing 1 replies (of 1 total)

 *  [leftbas65](https://wordpress.org/support/users/leftbas65/)
 * (@leftbas65)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/embedded-javascript-code-not-working/#post-4507377)
 * I’m not sure what trouble you’re having. When I click the Shopify link, I see
   a child window with three products in it, so the Java script does appear to be
   working.
 * Do you have Java enabled on your browser?

Viewing 1 replies (of 1 total)

The topic ‘Embedded javascript code not working’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [leftbas65](https://wordpress.org/support/users/leftbas65/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/embedded-javascript-code-not-working/#post-4507377)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
