Adding Mind Body Software Javascript to my WordPress site
-
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
- The topic ‘Adding Mind Body Software Javascript to my WordPress site’ is closed to new replies.