Support » Plugin: NextGEN Gallery Optimizer » Images are not resizing with Fancybox?

Viewing 1 replies (of 1 total)
  • Plugin Author Mark Jeldi


    Hi akcorcoran,

    Thanks for downloading NextGEN Gallery Optimizer Premium! I’m glad you like it! 🙂

    I’ve been having a look at your source code, and it turns out you’ve got three different instances of Fancybox loading on your pages, causing conflicts.

    On your main page, you’re using one built into the Polaroid Gallery plugin (with cut-off titles). And on your gallery page, you’re seeing yet another Fancybox built-into your Photocrati Theme (which currently has broken titles). This is overriding the one in Optimizer, and is loading sitewide, so would best be removed.

    The Fancybox in Optimizer Premium works perfectly on the gallery page when I remove the Fancybox scripts and styles from your Photocrati theme. To do this, simply cut or comment out the following from your theme’s header.php file (or anything Fancybox related in your functions.php)…

    <link rel="stylesheet" href="" type="text/css" />
    <script type="text/javascript" src=""></script>
    <script type="text/javascript">
    (function () {
    	var div = document.createElement('div'),
    	ref = document.getElementsByTagName('base')[0] ||
    	div.innerHTML = '­<style> iframe { visibility: hidden; } </style>';
    	ref.parentNode.insertBefore(div, ref);
    	jQuery(window).load(function() {
    	function formatTitle(title, currentArray, currentIndex, currentOpts) {
    		return '<div id="tip7-title"><span><a href="javascript:;" onclick="jQuery.fancybox.close();"><img src="" alt="close label" /></a></span>' + (title && title.length ? '<b>' + title + '</b>' : '' ) + 'Image ' + (currentIndex + 1) + ' of ' + currentArray.length + '</div>';
    	jQuery(document).ready(function() {
    		'overlayColor'		: '#0b0b0f',
    		'overlayOpacity'	: 0.8,
    		'centerOnScroll'	: true,
    				'titlePosition'		: 'outside'
    				//'href'				: ''+site+''
    	var lighboxSelector = '.photocrati_lightbox_always, .photocrati_lightbox';
    		'overlayColor'		: '#0b0b0f',
    		'overlayOpacity'	: 0.8,
    		'centerOnScroll'	: true,
    				'titlePosition'		: 'outside'

    Optimizer adds room for a one-line title (when provided) in Fancybox’s image height calculations, ensuring there’s the same space at the bottom of the viewport (beneath the title) as there is at the top (above the image). If you like the look of it on your gallery page (after removing the code above), I can write you a custom function so it loads on your main page also to fix the cut-off titles.

    Hope this helps!


Viewing 1 replies (of 1 total)
  • The topic ‘Images are not resizing with Fancybox?’ is closed to new replies.