Support » Plugin: Easy FancyBox » Ignore Gutenberg download buttons

  • Resolved Collin Anderson

    (@collinmanderson)


    Gutenberg just added file blocks that have download buttons which use <a download="etc">.

    Can we have this plugin not apply to anything with a download="" attribute?

    (Or alternatively have it specifically ignore .wp-block-file__button?)

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

    (@ravanh)

    Hi Collin, excellent suggestion. This will be added in the next release.

    Until then, you can edit the plugin file easy-fancybox/inc/class-easyfancybox.php adding a.wp-block-file__button, on line 84 so it looks like this:

    
    jQuery(\'.nofancybox,a.wp-block-file__button,a.pin-it-button,a[href*="pinterest.com/pin/create"]\').addClass(\'nolightbox\');';
    

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Ignore Gutenberg download buttons’ is closed to new replies.