• Resolved nkarafo

    (@nkarafo)


    Hello.
    How can I config this nice plugin so that in some images to be able to download a file instead of just viewing the thumbnail? For example I have a thumbnail from a book and the user wants to download the pdf instead of just viewing the thumbnail.
    I have put in Anti Selector, “pdf” or “.pdf” and nothing happened.
    Please advise.
    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jordy Meow

    (@tigroumeow)

    Hi @nkarafo,

    You need to add a CSS selector in order to disable the plugin. Can you give me the link where those PDFs appear? I will try to find it for you ??

    Hello i have the same problem. I use the “no-lightbox” on image but i get a big warning

    ( ! )?Warning: Undefined array key “file” in …./wp-includes/media.php on line?1680

    i use this in a loop with pdf attached with an ACF field

    $pdf = get_field(‘file’, $post->ID);

    wp_get_attachment_image($pdf[‘ID’], ‘large’, ”,array(‘class’=>’no-lightbox’))

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Disable for links (media, files, etc)’ is closed to new replies.