Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #40244
    Stephen Cormack
    Guest

    Hi, we have a booking website to which I am trying to create a link to our services. The booking tool is called Mind Body and they have provided me with code below to paste to the site I am building The problem I am having is that I want to style a button to link this code. I cannot place this code as a url link in to the buttons in my theme. Are you able to help me in getting a button that is in line with my theme to host this code?
    <script src=”https://widgets.mindbodyonline.com/javascripts/healcode.js&#8221; type=”text/javascript”></script><healcode-widget data-version=”0.2″ data-link-class=”healcode-contract-text-link” data-site-id=”12345″ data-mb-site-id=”12345″ data-bw-identity-site=”false” data-type=”contract-link” data-inner-html=”Buy Now” data-service-id=”101″ />

    #40270
    Jesse Owens
    Keymaster

    Hi Stephen-

    Thanks for the question, and thanks for using the Crio WordPress theme for business. I’ve edited your question to change your unique ID to “12345” so that your unique code can’t be used on other websites.

    The code you have there would be kind of difficult to simply “paste” into your site, mostly because the <healcode-widget> element is not a normal HTML element. That means that if you pasted it in using the Text Editor, and then switched back to the visual editor, it would be deleted.

    I did find a free plugin that’s designed to include MindBody links via shortcode.

    • This reply was modified 2 years, 10 months ago by Jesse Owens. Reason: Edit ID number
Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘How to Embed a MindBody Javascript Snippet as a Button Link?’ is closed to new replies.