Hey,
I am using wordpress 3.1.1 and easy fancybox plugin.
The problem is that PDFs are not loading in the fancybox. I have tried this in firefox, internet explorer 8 and chrome. Whenever I click on a pdf link, a blank box appears. If I press ctrl+A I see some gibberish where my PDF file should be. I have tried with multiple files, and tried to link to files on scribd too. Nothing seems to be working!
If someone can help me I would be much obliged, since I have already wasted a lot of time on this.
the site is: http://www.equitymechanics.in - please click research reports and then click "trial report download" to see the problem for yourself.
Thanks in advance.
Hi, it seems you have switched off the plugin and removed the link... If you restore it, I can take a look :)
But in any case, I think the problem might well be caused by the fact that your theme loads a second FancyBox library in the footer. It's an older version that is probably not capable of handeling PDFs... So I would suggest to either upgrade your theme to use the latest FancyBox, or remove all related FancyBox stuff from your theme (both the js files and the code in either functions.php or footer.php)
Hey I've reactivated the plugin.
equitymechanics.in --- just click research reports and click any link there and you'll see the problem.
NB. I've changed the basic text colour to blue [from white earlier] and now the problem is more clearly visible.
Any help would be GREATLY appreciated.
-Ritwik
I can confirm that if you remove the line in your footer source that says:
<script type="text/javascript" src="http://equitymechanics.in/online/wp-content/themes/BusinessCard/js/jquery.fancybox-1.2.6.pack.js"></script>
(and set the PDF frame width/height to less than 100%) fancybox starts working. This means you will have to remove the code that is responsible for that call from your theme.
It should not be too difficult but let me know if you need me to do it for you :)
It works now!
Thanks a lot for your help.