Skip to content
Discussion options

You must be logged in to vote

Hi,

  1. Remove data-fancybox="gallery" from your links. Fancybox automatically attaches click event to any element having data-fancybox attribute;
  2. You have to change your code so that is uses some class name instead of applying style="display:none";
  3. Then choose valid CSS selector that returns your links and use if for Fancybox.bind() method. Also, move it outside click handler.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@wtem-design
Comment options

Answer selected by wtem-design
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants