Popup not loading on page load

Hi Vlad,

I’m trying to load a fancybox popup on page load but it doesn’t seem to be working. Could something be incompatible with the theme? This is my code (placed in a Visual Editor widget):

<script type=“text/javascript”>
$(document).ready(function () {
‘width’: ‘80%’,
‘height’: ‘80%’,
‘autoScale’: true,
‘transitionIn’: ‘fade’,
‘transitionOut’: ‘fade’,
‘type’: ‘iframe’,
‘href’: ‘https://ruby23.typeform.com/to/BQeZya

However, this works:
This link opens an external page in an Iframe

FYR, my link is http://movemankind.com/

Sorry if this is not within the scope of your support. Thanks in advance!


It is indeed not within the scope of this forum and it doesn’t have anything to do with the theme. First, your JS code is mixed with HTML so it won’t run. Hit F12 and then ESC and you’ll see the error. Other than that I can’t help, sorry.

Ok, no problem. Thanks for your advice!