Is there a way to open wordpress pages/posts in a lightbox?
I’ve created a custom post type. These posts contain only a title, an embedded pdf (via the PDFjs Viewer plugin) and a featured image which is a screenshot of the first page of the pdf.
I have set up an essential grid that shows the featured images and links to the pages and this works fine.
I would however like to accomplish that the pdf page opens in a lightbox instead of a separate page. The reason is that there will be an active video stream running and it would be ideal if people can continue to listen to the audio and at the same time view the pdf’s. If this can be done I’m considering creating the entire site as a one-pager.
A workaround would be to open the pdf pages in new tabs but that if far less elegant and will cause confusion for some users so a lightbox or any other kind of popup is strongly preferred.
Can this be done? Thank you for your advice!