Support » Plugin: WordPress Gallery Plugin - NextGEN Gallery » How to disable truncation via shave.js

  • Resolved ODAK71

    (@odak71)


    Hello NGG, I use a legacy template with the newest version of NGG Plugin.

    Some galleries with longer title in an album are with … instead of the gallery title because shave.js truncate it.

    How can I disable this.

    Best regards
    KADO

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter ODAK71

    (@odak71)

    Hello, the newest version of NGG replaces again the captions at gallery images in the album with … instead of displaying the captions completely. How can I stop this or make the script shave.js of NGG not run. Its an legacy template.

    I found this error with the latest version of NGG as well. One way to remove shave.js is to target it with wp_dequeue_script() function in your functions.php file like this:

    /**
     * Dequeue plugin scripts
     *
     * Hooked to the wp_print_scripts action, with a late priority (100),
     * so that it is after the script was enqueued.
     */
    function wp_dequeue_plugin_scripts() {
        wp_dequeue_script('shave.js');
    }
    add_action( 'wp_print_scripts', 'wp_dequeue_plugin_scripts', 100 );

    That worked on my site. Hope it helps.

    Thread Starter ODAK71

    (@odak71)

    Unfortunately does not work.

    @boltonstudios, it works perfectly. Thank you very much!

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