• Resolved Andy Templeton

    (@andy-templeton)


    I uploaded a PDF to media library. I uploaded a jpg of the cover to the media library. I created a new page . and inserted the jpg and created a link to the PDF.

    The link does not work. I get “The image could not be loaded” on a blank page.

    But when I add the link to a string of words “view page here” the PDF comes up.

    I have read some other posts about this issue but none relate that I can tell.

    I am not very technical.

    Thanks, Andy

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • cleancoded

    (@cleancoded)

    It looks like you’re using the Photoswipe Masonry Gallery plugin to handle the way your WordPress sites handles linked media files, in your example, how your site handles the media library-hosted PDF link from PDF-Cover.jpg.

    While logged in, edit your page (/quick-guide-to-corporate-photography) and click on the “Text” editor. Remove the class="single_photoswipe" from the <a> link tag. This will allow your PDF to open without the special handling provided from the Photoswipe Masonry Gallery plugin.

    Here’s a step-by-step video I created that (1) successfully recreates the error you’re experiencing and (2) outlines how to fix it:

    Thread Starter Andy Templeton

    (@andy-templeton)

    You the MAN! Thank you cleancoded!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Link to PDF showing “The image could not be loaded”’ is closed to new replies.