Support » Plugin: NextGEN Gallery ColorBoxer » How can I hide phrases such as "image 1 of 20" on large image view popup?

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

    (@mark-jeldi)

    Hi WebDi,

    Thanks for using NextGEN Gallery ColorBoxer!

    To remove the image count, you’ll want to set the “current” property as false. To do this, simply open nextgen-gallery-colorboxer-scripts-and-styles.php, and replace the “colorbox inline js” section with the following…

    /**********************************************************************
    * colorbox inline js
    **********************************************************************/
    
    function nggcb_colorbox_inline_js() {
        global $nggcb_options;
    
    	$nggcb_colorbox_script = '<!-- [nextgen gallery colorboxer] This page must contain a gallery...else we wouldn\'t be serving colorbox\'s scripts and styles -->';
    	$nggcb_colorbox_script .= "\n";
    	$nggcb_colorbox_script .= '<script type=\'text/javascript\'>';
    	$nggcb_colorbox_script .= 'jQuery(document).ready(function() { jQuery(\'a.mycolorbox\')';
    	$nggcb_colorbox_script .= '.colorbox({ current:false, ';
    	$nggcb_colorbox_script .= 'opacity:' . $nggcb_options['colorbox_opacity'] . ', ';
    	$nggcb_colorbox_script .= 'transition:"' . $nggcb_options['colorbox_transition'] . '" ';
    	$nggcb_colorbox_script .= '}); });';
    	$nggcb_colorbox_script .= '</script>';
    	$nggcb_colorbox_script .= "\n";
    
    	echo $nggcb_colorbox_script;
    
    } // close nggcb_colorbox_inline_js

    Hope this helps!

    Cheers,
    Mark.

    Thank you Mark

    Plugin Author Mark Jeldi

    (@mark-jeldi)

    Hi WebDi,

    No worries! Glad I could help 🙂

    Just wanted to add that you can also use the code block above to incorporate the many other settings in ColorBox’s API.

    Cheers,
    Mark.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How can I hide phrases such as "image 1 of 20" on large image view popup?’ is closed to new replies.