Reply To: Can I add rel tags in settings?

Your Account / Forums / Easy FancyBox Pro / Can I add rel tags in settings? / Reply To: Can I add rel tags in settings?

January 18, 2014 at 2:44 am #3417

Hi Darrin, it sounds like this PWA+PHP plugin has a lightbox built-in. Is that correct? If so, it might be difficult to make it work with another lightbox like FancyBox.

In any case, what is going on is this: the PWA plugin creates two links for each image in the page source code. One for viewing and one for downloading the image (different sizes apparently)… Now the plugin Easy FancyBox is designed to make life easy and detect all image links automatically. And in this case, this is causing both the view and the download links to be detected and included in the gallery.

Is there an option in PWA plugin to disable these download links? If so, try that.

Otherwise you will need to:
1. disable the Auto-detection by removing “.JPG” (only the one with capitals) from the Auto-detect field on your Settings > Media admin page.
2. Add the following script code in a text widget (easiest) or in your themes footer.php above the wp_footer() call:


<script type="text/javascript">
jQuery(document).ready(function(){
	jQuery('.pwaplusphp_imglink').addClass('fancybox').attr('rel', 'gallery');
});
</script>