Support » Plugin: WordPress Gallery Plugin - NextGEN Gallery » lightbox in theme Total X nextgen

  • Resolved marujobhz


    hi poeple, i want to config the lightbox to use another, from the theme (Total, by Wp Explorer).
    i need to setup this parametes. how i must fill them?

    im using the free version of nextegen gallery. in lightbox effects option there is an option to select ‘custom’, and other params:
    – code: (i try to use ‘wpex_lightbox_scripts’) but doesnt works
    – Stylesheet URL:
    – Javascript URL
    these others params, to use total lightbox is what?
    anyone can help me? tks a lot !!

Viewing 1 replies (of 1 total)
  • Hey,

    You can add the following to the theme for basic support:

    // Register total-lightbox for NextGen.
    add_action( 'ngg_registered_default_lightboxes', function() {
    	if ( ! class_exists( 'C_NGG_Lightbox' ) ) {
    	$lightbox = new C_NGG_Lightbox( 'total_lightbox' );
    	$lightbox->title = esc_html__( 'Total', 'total' );
    	$lightbox->code = 'class="wpex-lightbox"';
    	$lightbox->styles = array( 'wordpress#fancybox' );
    	$lightbox->scripts = array( 'wordpress#fancybox');
    	C_Lightbox_Library_Manager::get_instance()->register( 'total_lightbox', $lightbox );
    } );

    Which will add a new “Total” option to the Lightbox choices.

    I made a video sample to show you:

    For gallery lightbox to work though the theme requires the “wpex-lightbox-group” class added to the gallery classname, but I’m not finding any filter in the plugin that will allow me to do this, so it may have to be added with JS. I will keep looking so I can provide default integration in the next theme update.

    – AJ

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.