WordPress.org

Forums

Gallery
[resolved] Displays Both Image Link and Slider (2 posts)

  1. rtilog
    Member
    Posted 2 years ago #

    Everytime I click on an image thumbnail, two windows open - the slider window and the lightbox. How do I disable the lightbox and just show the slider?

    http://wordpress.org/extend/plugins/gallery-plugin/

  2. bestwebsoft
    Member
    Plugin Author

    Posted 2 years ago #

    Hello rtilog,

    Perhaps, your theme has the script slider window and the plugin has the lightbox script. That's why two scripts work at the same time.
    You should turd off one of them.
    You should find this piece of code in the plugin file gallery-plugin.php:

    if ( ! function_exists ( 'gllr_wp_head' ) ) {
    function gllr_wp_head() {
    wp_enqueue_style( 'gllrStylesheet', plugins_url(
    'css/stylesheet.css', __FILE__ ) );
    wp_enqueue_style( 'gllrFancyboxStylesheet', plugins_url(
    'fancybox/jquery.fancybox-1.3.4.css', __FILE__ ) );
    wp_enqueue_script( 'jquery' );
    wp_enqueue_script( 'gllrFancyboxMousewheelJs', plugins_url(
    'fancybox/jquery.mousewheel-3.0.4.pack.js', __FILE__ ), array(
    'jquery' ) );
    wp_enqueue_script( 'gllrFancyboxJs', plugins_url(
    'fancybox/jquery.fancybox-1.3.4.pack.js', __FILE__ ), array( 'jquery'
    ) );
    }
    }

    and change it to:

    if ( ! function_exists ( 'gllr_wp_head' ) ) {
    function gllr_wp_head() {
    wp_enqueue_style( 'gllrStylesheet', plugins_url(
    'css/stylesheet.css', __FILE__ ) );
    // wp_enqueue_style( 'gllrFancyboxStylesheet', plugins_url(
    'fancybox/jquery.fancybox-1.3.4.css', __FILE__ ) );
    // wp_enqueue_script( 'jquery' );
    // wp_enqueue_script( 'gllrFancyboxMousewheelJs', plugins_url(
    'fancybox/jquery.mousewheel-3.0.4.pack.js', __FILE__ ), array(
    'jquery' ) );
    // wp_enqueue_script( 'gllrFancyboxJs', plugins_url(
    'fancybox/jquery.fancybox-1.3.4.pack.js', __FILE__ ), array( 'jquery'
    ) );

    Kind regards.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Gallery
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic