WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Gallery ColorBoxer
[resolved] How can I hide phrases such as "image 1 of 20" on large image view popup? (4 posts)

  1. WebDi
    Member
    Posted 1 year ago #

    How can I hide phrases such as "image 1 of 20" on the large image popup?
    I've tried the following but it's being over-written by the in-line styling.
    div#cboxCurrent { display:none !important; }

    Thanks

    http://wordpress.org/extend/plugins/nextgen-gallery-colorboxer/

  2. Mark Jeldi
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  3. WebDi
    Member
    Posted 1 year ago #

    Thank you Mark

  4. Mark Jeldi
    Member
    Plugin Author

    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.