A client of mine is working with MindBody and they gave her a login/register script that I want to add to the top menu:
<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=”123698″ data-mb-site-id=”5741852″ data-bw-identity-site=”false” data-type=”account-link” data-inner-html=”Login | Register” />
How do I do that?
Hey yifatcohen,
Thank you for the inquiry.
You can try the ava_after_main_menu hook or any template hooks available in the includes > a/enfold/includes/helper-main-menu.php file.
Please add this code in the functions.php file:
function av_healcode_script_after_menu() {
?>
<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="123698"
data-mb-site-id="5741852"
data-bw-identity-site="false"
data-type="account-link"
data-inner-html="Login | Register">
</healcode-widget>
<?php
}
add_action('ava_after_main_menu', 'av_healcode_script_after_menu');
Best regards,
Ismael