• Hi !
    Thank you for the amazing work you did with this plugin !
    I want to use it a lot on my future website.
    On some pages, I want to use the zoom feature with the exact same look as other szg gallery, but for only one image !
    Is it possible to hide the thumbnail’s div when there is only one image in the gallery ?
    I mean, I know it’s possible but I’m bad in javascript.
    Could you help me with this please !
    Remi

    http://wordpress.org/plugins/super-zoom-gallery/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Niels

    (@ndoorn)

    Hi lagz,

    You could try this, I haven’t tested it but I think it works. In the superzoomgallery.php file, at the end, replace this:

    $content .= ' <div class="szg-thumbs">';
        $content .= $thumbs;
        $content .= ' </div>';

    With this:

    if (count($keys) > 1) {
          $content .= ' <div class="szg-thumbs">';
          $content .= $thumbs;
          $content .= ' </div>';
        }

    Hope it works, please let me know.

    Niels

    Hi Niels
    In the superzoomgallery.php file, at the end, replace the code as you say.

    shows me the following error:

    Warning: Cannot modify header information – headers already sent by (output started at …/public_html/site/wp-content/plugins/super-zoom-gallery/superzoomgallery.php:443) in …./public_html/site/wp-includes/pluggable.php on line 1121

    that I can do?

    Hi Niels
    now corrected the error by showing the page but now displays errors when saving page

    Warning: Cannot modify header information – headers already sent by (output started at /home/xxxxx/public_html/site/wp-content/plugins/super-zoom-gallery/superzoomgallery.php:442) in /home/xxxxx/public_html/site/wp-admin/post.php on line 235

    Warning: Cannot modify header information – headers already sent by (output started at /home/xxxxxxx/public_html/site/wp-content/plugins/super-zoom-gallery/superzoomgallery.php:442) in /home/xxxxxx/public_html/site/wp-includes/pluggable.php on line 1121

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘remove single thumbnail’ is closed to new replies.