Easy FancyBox
[resolved] open pdf in Easy fancy box (2 posts)

  1. dsg257
    Posted 3 years ago #

    Trying to use fancy box to open a pdf file this is the code
    <a class="nofancybox fancybox-iframe" href="https://docs.google.com/gview?url=http://localhost:47577/wp-content/uploads/2013/06/Alexander-Graham-Bell-and-the-Garfield-Assassination.pdf&embedded=true">Open in iFrame with Google Docs Viewer</a>
    and this is what is displayed on the screen

    Sorry, we were unable to find the document at the original source. Verify that the document still exists.

    You can also try to download the original document by clicking here.

    if I click the link the pdf opens in the fancy box

    not got a clue how to get the file to open automatically without clicking the "here " link


  2. RavanH
    Plugin Author

    Posted 3 years ago #

    Localhost is not publicly available. You can access it from your computer but no one else can. It must be public.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic