Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Marko

    (@markoreklaam)

    Now I got closer as realized that this is has to do something with Lightbox and I found out that my theme has lightbox enabled. Is there any way in shorcode do disable lighbox opening pdf files?

    Plugin Author David Lingren

    (@dglingren)

    Thanks for your question and the follow-up post with theme/lightbox note.

    There are many WordPress lightbox plugins and themes, each with its own features and parameters. If you can tell me more specifically what theme and lightbox you are using I can be more helpful. Posting a link to one of your site’s pages containing an example of the problem would be very helpful, too.

    Thanks for any additional information you can provide.

    Thread Starter Marko

    (@markoreklaam)

    Thanks for your replay. I’m using Avada theme, full demo is available here
    https://theme-fusion.com/avada/

    If this does not help, I can send you the link of my project privately.

    BTW, I’m using this code do display pdf:

    [mla_gallery post_mime_type=”application/pdf” link=file mla_link_attributes=’rel=”nobox”‘ size=icon mla_viewer=true mla_caption=”{+title+}” mla_target=”_blank”]

    Plugin Author David Lingren

    (@dglingren)

    Thanks for your update with the additional information. I had a quick look at the Avada site, but it doesn’t have enough information to shed light on your situation.

    Thanks as well for posting the source text of your shortcode; very helpful. I tried it on my test system and it opens PDF documents in a separate tab, just as you’d like. I did make one change which might apply to your application, and I deleted mla_viewer=true. This option no longer works, but in your case the size=icon parameter takes precedence and mla_viewer is ignored.

    I don’t know if this applies to your application, but I had to add post_parent=all to my version of your shortcode. By default, [mla_gallery] only displays items that are “attached” to the post or page on which the shortcode appears; that’s the WordPress default. The post_parent=all parameter overrides this and shows all of the PDF documents in the Media Library. You could also display specific documents with theids parameter or use taxonomy terms to select the documents for the gallery display.

    I would suggest adding post_parent=all just as a test.

    I don’t know if the rel="nobox" attribute is the right way to disable the lightbox in the Aveda theme – you’d have to check their documentation to make sure.

    If you’d like to send a link to your site I can investigate further. You can use the Contact Us page at our web site:

    Fair Trade Judaica/Contact Us

    I look forward to hearing from you. Thaks for your interest in the plugin.

    Plugin Author David Lingren

    (@dglingren)

    It has been two weeks since my last post, and I assume you have found a solution for your application.

    I am marking this topic resolved, but please update it if you have any problems or further questions regarding linking an [mla_gallery] to your theme’s lightbox.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘PDF linking’ is closed to new replies.