Fancybox Fails to Load - Returns "- 2012"

5 views
Skip to first unread message

kd

unread,
May 23, 2012, 5:47:00 PM5/23/12
to fancybox
I'm using Fancybox 3.0.1 with a Wordpress site. Several changes have
been made to the site (updated to WP 3.3.2, updated plugins, etc) and
somewhere along the way Fancybox stopped working. I have 4 different
images on one page that all call Fancybox. In the past, the links
loaded a flash movie as expected. Now, the progress spinner loads, but
eventually stops spinning and then results with the page reloading
with only "- 2012" showing on the page. You can see it here:
http://www.softvu.com/index.php/what-we-do/

I've tried Reverting to defaults with no luck.

Any suggestions greatly appreciated!
KD

JFK

unread,
May 23, 2012, 8:09:14 PM5/23/12
to fancybox
if you are targeting inline content then use this structure (fancybox
v1.3.x):

<a class="fancybox" href="http://www.softvu.com/index.php/what-we-do/
#OnlineLending" ........

<div style="display: none;">
<div id="OnlineLending">
content
</div>
</div>

Currently you are doing
<div id="OnlineLending" style="display: none; ...

the "display: none" in the targeted inline content makes it
unavailable to fancybox .... so wrapped it in an extra <div> as above

Kory Dillman

unread,
May 23, 2012, 10:30:31 PM5/23/12
to fanc...@googlegroups.com
That fixed it! I have no clue why it worked previously because the problem you pointed out was pretty onerous. Thank you!!!

--
You received this message because you are subscribed to the Google Groups "fancybox" group.
To post to this group, send email to fanc...@googlegroups.com.
To unsubscribe from this group, send email to fancybox+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/fancybox?hl=en.


Reply all
Reply to author
Forward
0 new messages