Title: Javascript not working?
Last modified: April 21, 2022

---

# Javascript not working?

 *  [emdesigns](https://wordpress.org/support/users/emdesigns/)
 * (@emdesigns)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/javascript-not-working-33/)
 * Hello. Code generated by my salon system for a button for purchase is not working–
   the widget creator is insisting it’s a wordpress issue.
    Code below:
 *     ```
       " <script src="https://widgets.mindbodyonline.com/javascripts/healcode.js" type="text/javascript"></script><healcode-widget data-version="0.2" data-link-class="healcode-gift-card-image-link" data-site-id="52772" data-mb-site-id="287543" data-bw-identity-site="false" data-type="gift-card-link" data-inner-html="<img alt='Buy Now' src='https://www.theclearskinclinics.com.au/wp-content/uploads/2022/04/Screen-Shot-2022-04-20-at-4.15.23-pm.png' />" data-service-id="14641" /> "
       ```
   
 * WP.com: Unknown
    Jetpack: Unknown Correct account: Unknown
 * The blog I need help with is:
    -  This topic was modified 4 years, 1 month ago by [Yui](https://wordpress.org/support/users/fierevere/).
      Reason: formatting

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

 *  Thread Starter [emdesigns](https://wordpress.org/support/users/emdesigns/)
 * (@emdesigns)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/javascript-not-working-33/#post-15576916)
 *     ```
       <script src="https://widgets.mindbodyonline.com/javascripts/healcode.js" type="text/javascript"></script><healcode-widget data-version="0.2" data-link-class="healcode-gift-card-image-link" data-site-id="52772" data-mb-site-id="287543" data-bw-identity-site="false" data-type="gift-card-link" data-inner-html="<img alt='Buy Now' src='https://www.theclearskinclinics.com.au/wp-content/uploads/2022/04/Screen-Shot-2022-04-20-at-4.15.23-pm.png' />" data-service-id="14641" />
       ```
   
 * – this is trying to display a button that opens a widget in the app.
 * The alternative code without the button works fine –
 *     ```
       <script src="https://widgets.mindbodyonline.com/javascripts/healcode.js" type="text/javascript"></script><healcode-widget data-version="0.2" data-link-class="healcode-gift-card-text-link" data-site-id="52772" data-mb-site-id="287543" data-bw-identity-site="false" data-type="gift-card-link" data-inner-html="Buy Now" data-service-id="14641" />
       ```
   
    -  This reply was modified 4 years, 1 month ago by [Yui](https://wordpress.org/support/users/fierevere/).
      Reason: formatting
 *  Thread Starter [emdesigns](https://wordpress.org/support/users/emdesigns/)
 * (@emdesigns)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/javascript-not-working-33/#post-15576918)
 * OR:
 *     ```
       <script src="https://widgets.mindbodyonline.com/javascripts/healcode.js" type="text/javascript"></script><healcode-widget data-version="0.2" data-link-class="healcode-gift-card-image-link" data-site-id="52772" data-mb-site-id="287543" data-bw-identity-site="false" data-type="gift-card-link" data-inner-html="<img alt='Buy Now' src='https://www.theclearskinclinics.com.au/wp-content/uploads/2022/04/Screen-Shot-2022-04-20-at-4.15.23-pm.png' />" data-service-id="14641" />
       ```
   
 * this is trying to display a button that opens a widget in the app.
 * The alternative code without the button works fine –
 *     ```
       <script src="https://widgets.mindbodyonline.com/javascripts/healcode.js" type="text/javascript"></script><healcode-widget data-version="0.2" data-link-class="healcode-gift-card-text-link" data-site-id="52772" data-mb-site-id="287543" data-bw-identity-site="false" data-type="gift-card-link" data-inner-html="Buy Now" data-service-id="14641" />
       ```
   
    -  This reply was modified 4 years, 1 month ago by [Yui](https://wordpress.org/support/users/fierevere/).
      Reason: formatting
 *  [Little Package](https://wordpress.org/support/users/littlepackage/)
 * (@littlepackage)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/javascript-not-working-33/#post-15576937)
 * You’ve got mis-matching quotes in your code which usually causes problems. But
   you’re probably aware of that.
 * `<script src="https://widgets.mindbodyonline.com/javascripts/healcode.js"></script
   ><healcode-widget data-version="0.2" data-link-class="healcode-gift-card-image-
   link" data-site-id="52772" data-mb-site-id="287543" data-bw-identity-site="false"
   data-type="gift-card-link" data-inner-html="Buy Now or are you trying to use 
   HTML here or...?" data-service-id="14641" />`
 * When using the button, what does `data-inner-html` actually equal, and what type
   of values does `data-inner-html` accept? From what you’re saying it accepts text
   values, and from its name it must anticipate HTML in some form, but what?
    -  This reply was modified 4 years, 1 month ago by [Little Package](https://wordpress.org/support/users/littlepackage/).
 *  Thread Starter [emdesigns](https://wordpress.org/support/users/emdesigns/)
 * (@emdesigns)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/javascript-not-working-33/#post-15576957)
 * H [@littlepackage](https://wordpress.org/support/users/littlepackage/) you’re
   over-estimating my knowledge of these things 🙂 Where are the mismatched quotes?
   I have no idea what ‘data-inner-html’ is trying to do, but in essence, by clicking
   the button it’s opening an on-page widget to transact through the salon system.
   You can see it all in action (with the text link) at [http://www.theclearskinclinic.com.au/gift-vouchers](http://www.theclearskinclinic.com.au/gift-vouchers)
 *  [Little Package](https://wordpress.org/support/users/littlepackage/)
 * (@littlepackage)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/javascript-not-working-33/#post-15577048)
 * `<script src="https://widgets.mindbodyonline.com/javascripts/healcode.js"></script
   ><healcode-widget data-version="0.2" data-link-class="healcode-gift-card-image-
   link" data-site-id="52772" data-mb-site-id="287543" data-bw-identity-site="false"
   data-type="gift-card-link" data-inner-html='<img alt="Buy Now" src="https://i0.
   wp.com/www.theclearskinclinics.com.au/wp-content/uploads/2022/04/Screen-Shot-
   2022-04-20-at-4.15.23-pm.png?ssl=1" data-recalc-dims="1">' data-service-id="14641"/
   >`
 * This isn’t really a WordPress problem at all, these are just code and syntax 
   problems which are particular to your website.
 * Please Google mis-matched quotes. If you can’t follow, I’d highly urge you to
   hire a developer. You can find one quickly at jobs.wordpress.net or a site like
   codeable.io. This forum isn’t really the place for free help with custom code.

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

The topic ‘Javascript not working?’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 2 participants
 * Last reply from: [Little Package](https://wordpress.org/support/users/littlepackage/)
 * Last activity: [4 years, 1 month ago](https://wordpress.org/support/topic/javascript-not-working-33/#post-15577048)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
