fancybox v2 not compatible with mobile or tablet

135 views
Skip to first unread message

melanie bund

unread,
Mar 30, 2015, 9:04:29 AM3/30/15
to fanc...@googlegroups.com
hi I am using fancybox v2 ', it does not appear to be compatible with mobile or tablet, the popup is tiny - can anyone help? Below is snippet of the code
// THE FANCYBOX PLUGIN INITALISATION
jQuery(".fancybox").fancybox();

                    $(".fancybox")
.attr('rel', 'gallery')
.fancybox({
beforeShow: function () {
if (this.title) {
 
 var query = $(this.element).attr('alt');
  var url_1 = '<?php echo site_url(); ?>/review/'+query;
 var url_2 = '<?php echo get_stylesheet_directory_uri(); ?>/love.php'+query;
 var url_3 = '<?php echo site_url(); ?>/photographer/'+query+'&category=0';
 
 this.title += '<br />';
 
 this.title += '<a onclick="window.open(\''+url_1+'\',\'_blank\',\'scrollbars=yes, width=450, height=350\');return false;" class="commentButton"></a>';
 this.title += '&nbsp;&nbsp;';
 this.title += '<iframe src="#" name="iframe_a" style="display:none;"></iframe><a class="likeButton" href="'+url_2+'" target="iframe_a"></a>';                               
 this.title += '&nbsp;&nbsp;';
 this.title += '<a href="'+url_3+'" class="photographerButton"></a>';
 
 this.title += '&nbsp;&nbsp;';
 this.title += '<iframe src="//www.facebook.com/plugins/like.php?href=' + this.href + '&amp;layout=button_count&amp;show_faces=true&amp;width=500&amp;action=like&amp;font&amp;colorscheme=light&amp;height=23" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:110px; height:23px; margin-top:10px;" allowTransparency="true"></iframe>';
 
}
},
helpers : {
title : {
type: 'inside'
}
}  
});
thank you Melanie
HELP WOULD BE GREATLY APPRECIATED

JFK

unread,
Mar 30, 2015, 6:50:08 PM3/30/15
to fanc...@googlegroups.com
what do you mean with "tiny"?
do the examples at the fancybox website work on mobile/tablet?
got a link?

melanie bund

unread,
Mar 31, 2015, 7:18:46 AM3/31/15
to fanc...@googlegroups.com
Hi - here is the link to site, the popup image is smaller than the thumbnail

thank you Melanie

melanie bund

unread,
Apr 21, 2015, 10:07:26 AM4/21/15
to fanc...@googlegroups.com
Hi - am reposting the link to site, the popup image is smaller than the thumbnail
Is there a way to make it work?
thank you Melanie
Reply all
Reply to author
Forward
0 new messages