(Link above is an example, it is happening on all pages on the site).
I’ve noticed that Google has started crawling good URLs, then also crawling the same good URLs but with “javascript;” and “javascript” appended (without the quotes) – which is causing 404 errors.
I posted a question to Google Communities who identified it is coming from:
jQuery(this).attr(“data-fancybox”, “”).attr(“href”,”javascript;”).attr(“data-src”,href);
(see https://support.google.com/webmasters/thread/12048649?hl=en)
They also suggested something different to sort this (“I’d expect …”) but at this point it’s beyond my technical knowledge.
Hello. I’ve seen in the description that you plan to add iframe support. I was curious are you still going to do it? Are you still maintaining this plugin? It is a very simple and useful plugin so I hope so. Thank you for your work!
]]>I’m trying to use Fancybox 3 in my Envira galleries. It doesn’t seem to be working, so I’m sure I’m missing something. I turned off the Envira Lightbox on the page above expecting that Fancybox 3 would take over. The reason I want to switch to Fancybox 3 is because I want to use Fotomoto with my galleries and the Envira Lightbox isn’t supported. I’m new to all this so I would appreciate any help in making this work. Thanks so much in advance.
]]>Hi,
I just recently ran into an issue where it appears that Fancybox 3 doesn’t properly maintain the orientation of a rotated image.
In the link provided, you can see 2 portrait images. The first one is the erroneous one, where you can see Fancybox doesn’t maintain the portrait orientation. The second one is the correct one, where you can see that Fancybox does correctly maintain the portrait orientation.
If you just go to the Amazon S3 links for each respective image:
https://images.world-of-waterfalls.com/Ragged_Point_056_11172018.jpg
https://images.world-of-waterfalls.com/Grand_Canyon_Desert_View_021_03302018.jpg
you will see that they also have the correct orientation. This is what leads me to believe that something Fancybox 3 is doing is somehow not correct.
Upon looking at the browser inspector, I see that something is convincing the fancybox-image-wrap class to style the rotated image one way (width:1219px height:813px) versus the correct way (width:541px; height:813px).
I’m not sure what changed or what happened between the two images, but I’m trying to get to the bottom of this issue because I fear all new portrait images from here on out will be oriented incorrectly.
Thanks
]]>…but are not links to images.
I’ve found a number of links where the link happens to end in .png are being included as “Facny Box” links but as they actually link to a page the link is not working.
Example on page https://psamathe.eu/attribution/ qat attribution the link that says Wikimedia Commons is a normal links to https://commons.wikimedia.org/wiki/File:Psamathe.png but the generated html seems to be <a href="https://commons.wikimedia.org/wiki/File:Psamathe.png" target="_blank" rel="noopener" data-fancybox="">Wikimedia Commons</a>
and I suspect the “data-fancybox=”” is causing the link open (in a new tab) to fail. Other links to Wikimedia Commons that don’t end in .png seem to work file (e.g. the link in the same section to Arnaugir or the links to the licenses.
Any way the plugin can create anchor links? Say I have this page https://www.tromsite.com/documentary/ – people click one button, see one Vimeo video inside fancybox. But is there any way to make it so once you click a button a custom url is created that can be shared?
For example here on my website https://www.tiotrom.com/short-inspirational/# you click any video and it creates a custom URL that can be shared. It is done via the plugin “Easy Photography Portfolio”
]]>Hi, I am using WP’s native gallery.
On desktop the image caption only appears when you hover over an image. On mobile, the caption does not seem to appear at all.
Is there any easy way for me to make the caption appear below the image when the lightbox is opened?
I looked under FancyBox 3 settings and there was nothing to change the captions’ features.
]]>Hi, thanks for the updated plugin)
There was still a question, why when using inline content 2 buttons are displayed close, how to remove the top buttons? https://prntscr.com/jsxf3j
Hi, data-fanсybox=”gallery” is not unique, you need to split the gallery, my code is lower.
If you do, I’ll use your plugin.
gallery.each(function(){
var galleryid = jQuery(this).parent().parent().parent().attr(“id”);
var title = jQuery(this).children(“img”).attr(“title”);
var caption = jQuery(this).children(“img”).attr(“alt”);
jQuery(this).attr(“data-fancybox”, galleryid).attr(“title”,title).attr(‘data-caption’,caption);
});
As I wanted to enable fancybox galleries for the images on wordpress index pages, i.e. pages showing a number of posts, I have patched the current version to enable this functionality, which otherwise would give only single lightbox functionality on index pages but without the gallery.
In the admin page the settings for “Enable Fancybox” are extended to
show one more checkbox “Gallery for Post Images”. If checked, this
functionality is enabled.
For an example see https://markus-spring.info/vernacular/
You can download the path from
https://markus-spring.info/varia/enable-index-galleries.zip
Feel free to use and/or improve – @w3dev: I would be glad if this would go into the official sources of the plugin so that I do not have to patch it in myself after every update.
]]>I have tried every possibility to get this plugin to work but every time I click on an image it loads the image directly.
I tried un-optimising the site just to see if that was an issue or if jQuery was not loaded but that is not the case.
I use Twenty Seventeen as the theme and I have the JetPack image speed module enabled and WP Offload S3 installed.
Please let me know what I need to do to get this to work.
I await your immediate response.
Thank you.
]]>I am brand new to WordPress but have other web experience. I wasn’t able to get Fancybox 3 to “automatically” work on pages or posts after installation, but I got it working on images embedded in a post. Now my question is how to get it to work with Featured Images.
From reading the other comments and responses in this forum, it appears that you have programmed Fancybox 3 to work within anchor tags. Since a Featured Image is stored just inside an image tag without an anchor tag on a single post page, how can I get my Featured Images inside a lightbox? I like your plugin for sure, but I would love all post/page images and Featured Images to be inside a lightbox.
]]>It seems that the new javascript code from version 1.2.1 fires an error:
var inline = jQuery(“a[href^=#]:not([href=#])”);
Syntax error, unrecognized expression: a[href^=#]:not([href=#])
With the new update, data-fancybox=”group1″ data-caption=”test” don’t work, so items only work individually, don’t populate as a gallery.
]]>On the iPhone X in landscape orientation the “next” arrow to advance to the next image is somewhat “under” the “notch”. And the “close” X button just above the notch (notch to right) does not work
Is there anything that can be done about this through the plug-in?
Or at least 1st time into a gallery the “next” is under the notch but go back to post and back in again and it’s OK.
(All the Galleries on the site exhibit the same problem)
]]>This is a ebook plugin and we would love to open the books’ links (images and videos like ytb and vimeo) inside popups. I installed this plugin on my website and if I manually add data-fancybox to the book’s links it works. But why isn’t the plugin adding the “data-fancybox” to those links automatically? To be honest after I installed the plugin nothing worked. No image opened in a popup, and no image had the “data-fancybox”. So I am wondering was this a general fault of the plugin for the entire site? And if it works with the entire site, will it work with the links from ebooks like the one I sent you link for?
Thank you!
]]>Please don’t use the short PHP open tag <? in fancybox-3-for-wordpress.php line 192. On servers where short tags are disabled (default setting) the plugin won’t install.
]]>Installed, checked options (ALL OK) and works for a single image but with a [gallery] I just get the standard WordPress gallery displayed.
I’ve had a scan through the source but don’t really know php or WordPress enough to spot anything.
Checking the “Imspect element” and the jquery.fancybox.min.js and jquery.fancybox.min.css have been downloaded.
]]>