• I am having trouble understanding where to plug in a javascript for linking my webpage to my mindbodyonline account. I have the javascript needed but am not having any luck in understanding where to put it. I tried under the editing settings of the header.php and placed it in the <head> section. Any help would be great. This is the link script
    <script type=”text/javascript”>
    function launchWS(winName) {
    //window height and width
    myHeight = screen.height*.80;
    myWidth = 784;

    //widow height bounds
    if ( myHeight < 556 ) {
    myHeight = 556;
    } else if (myHeight>700) {
    myHeight = 700;
    }

    //get screen size, and cacl center screen positioning
    var height = screen.height;
    var width = screen.width;
    var leftpos = width / 2 – myWidth / 2;
    var toppos = (height / 2 – myHeight / 2) – 40;

    //open window
    msgWindow=window.open(winName,”ws_window”,”toolbar=no,location=no,directories=no,resizable=yes,menubar=no,scrollbars=no,status=yes,width=”
    + myWidth + “,height=”+ myHeight + “, left=”
    + leftpos + “,top=” + toppos);

    //focus window
    setTimeout(‘msgWindow.focus()’,1);
    }
    </script>
    My website is https://www.awakenmassageandyoga.com
    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • That’s just a function you would still need to call it like <a href="#" javasript="onclick(launchWS)" />click</a>

    Best place to ask would be back at mindbody w/e

    Thread Starter kant2u

    (@kant2u)

    Hi Parable,
    I did ask MB and they directed me to the forums.

    I took a look and I see that you were able to add a button to your MB account. Is that what you were trying to do or were you trying to do a more complex integration?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adding Mind Body Software Javascript to my WordPress site’ is closed to new replies.