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?
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
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.
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.