• emdesigns

    (@emdesigns)


    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 2 years ago by Yui. Reason: formatting
Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter emdesigns

    (@emdesigns)

    
    <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 2 years ago by Yui. Reason: formatting
    Thread Starter emdesigns

    (@emdesigns)

    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 2 years ago by Yui. Reason: formatting
    Little Package

    (@littlepackage)

    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?

    Thread Starter emdesigns

    (@emdesigns)

    H @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

    Little Package

    (@littlepackage)

    <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.