Tagged: ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #368506

    I have created several portfolio items with custom links, and made the custom link the url of a PDF file hosted on the site.

    On my portfolio grid, when you click the portfolio item, the PDF downloads right away but the browser stays on the portfolio page. I would like the PDF to open in a new tab of the web browser and display there by default. How can I control this behavior?

    Is ther someway to set to Content-Disposition: inline; for all PDF files?

    • This topic was modified 9 years, 3 months ago by hmsvictory.
    #368690

    Hey hmsvictory!

    Hmm, If you link directly to the PDF then I think it should open it up in the browser instead of downloading it. This may be different for certain browsers though.

    Go ahead and send us a link and we’ll take a look.

    Regards,
    Elliott

    #369690

    Thanks Elliott. Because of the browser issues, what I’ve done instead is use the WordPress google docs plugin. Instead of making each portfolio item a link, now it is standard and I embed the pdf on the portfolio item content using the google dosc plugin. That gives the desired effect.

    #369694

    I would also add that one way to improve the theme would be a wider variety of portfolio post types: link, video, audio, gallery, image, download, etc.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘How to make pdf open in browser when clicking on portfolio items?’ is closed to new replies.