Add Mindbody login or register links to header navigation.
- 0.2.0
- 7.1
- Squarespace plan that supports JavaScript.
-
Add the following to Website > Pages > Website Tools > Code Injection > HEADER.
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
-
Add code from file header navigation mindbody login or register links add.html to Website > Pages > Website Tools > Code Injection > FOOTER.
Before you install the code check your Mindbody generated code against the code snippet below. If the two codes look substantially different this code may need to be updated to work properly.
<script src="https://widgets.mindbodyonline.com/javascripts/healcode.js" type="text/javascript">
</script>
<healcode-widget data-version="0.2" data-link-class="loginRegister" data-site-id="[data site id]" data-mb-site-id="[data mb site id]" data-type="account-link" data-inner-html="Login | Register" />
Please consider making a donation.
-
2024-04-10
- only load script once and only if needed
- fix for code messing up the layout of other mb widgets
- bumped version to 0.2.0
-
2021-04-29
- initial version