Auto ThickBox Plus
[resolved] How to disable thickbox on some pages (6 posts)

  1. robertrafai
    Posted 2 years ago #

    I need to disable thickbox on some pages because I use my default theme gallery on few pages and I don't need to load images with thickbox.
    Now I'm getting double gallery window when I'm click on image thumbnail and biger image pop up. And those images are not assignet to nextgen gallery at all.
    At blog forum, everything is OK, before updating theme also in couples, party etc everything was ok too, after updating theme, every image is opened by thick box?!!?
    Is there some custom field code to disable nextgen and thickbox loading on those pages?


  2. robertrafai
    Posted 2 years ago #

    There is option for that :)

  3. Atomusan
    Posted 1 year ago #

    Can you explain how to activate the option? Thanks!

  4. robertrafai
    Posted 1 year ago #

    just looking but can't remember where I done what :(. If I remember, I'll write here

  5. Atomusan
    Posted 1 year ago #

    Thanks, let me know if you do.

  6. mikehaberle
    Posted 1 year ago #

    Hi guys,

    I actually JUST needed to do this myself. Here's how I did it.

    Open the auto-thickbox.php through WordPress's plugin editor.

    Scroll down to "function custom_scripts() {" and after the line
    var nothickbox = ['<?php echo str_replace(' ', '\', \'', trim($this->options['no_thickbox'])); ?>'];

    Add the following:

    global $post;
    $postID = $post->ID;
    if ($postID == 366 ) {
    return false;

    Basically, you're telling the JavaScript that it shouldn't run -- almost as if it found a "no_thickbox" tag.

    This isn't the best way to do it. But if you don't care, then it works. Be sure to replace the postID with your own ID(s).

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Auto ThickBox Plus
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic