- AuthorPosts
- July 8, 2021 at 2:15 pm #40244Stephen CormackGuest
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” 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″ />July 8, 2021 at 3:37 pm #40270Jesse OwensKeymasterHi 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 3 years, 5 months ago by Jesse Owens. Reason: Edit ID number
- AuthorPosts
- The topic ‘How to Embed a MindBody Javascript Snippet as a Button Link?’ is closed to new replies.