Link to home
Start Free TrialLog in
Avatar of Reece
ReeceFlag for Australia

asked on

fancybox wordpress plugin stopped working

There is a plugin - Fancybox for WP - that is used on a website I'm doing some design work for.
After some automatic updates to other plugins, themes or the addition of new plugins, the fancybox has stopped working for iFrames unless is specifically call it by a manual call in the plugin's settings

eg.  
jQuery("#enquiriesform").fancybox({
   'transitionIn': 'elastic',
   'transitionOut': 'elastic',
   'speedIn': 600,
   'speedOut': 200,
   'type': 'iframe',
   'width': '600',
   'height': '480'
 });

Open in new window


I've tried a full reset, uninstall, reinstall of the plugin and I cannot get it to work as it used to.
I don't know which plug-in broke it (if that's what happened).

Has anyone come across a similar issue or know how to fix this?

The website is http://winghammotel.com.au/index.php (don't hit the home button).

Thanks
ASKER CERTIFIED SOLUTION
Avatar of DrDamnit
DrDamnit
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Reece

ASKER

This is the weird thing... it's only not working for iFrames.
It works fine for images.

I tried what you suggested just now and it didn't change anything.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Reece

ASKER

Thanks for the suggestions.  I got it working by adding an extra call to the plugin's settings:

jQuery(".iframe").fancybox({
'type': 'iframe',
'width': 960,
'height': 740,
'hideOnOverlayClick': false,
'titleShow': false
});

Now all I need to do is add the class "iframe" to my href and the linked page/site will open in the fancybox iframe.   Usually this works without the extra call, but one of the plugins must've changed something.  At least there's a workaround.

I'll keep your functions.php fix (easynow111) on record in case I have that issue.

Cheers