Title: remove single thumbnail
Last modified: August 21, 2016

---

# remove single thumbnail

 *  [lagz](https://wordpress.org/support/users/lagz/)
 * (@lagz)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/remove-single-thumbnail/)
 * 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/](http://wordpress.org/plugins/super-zoom-gallery/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Niels](https://wordpress.org/support/users/ndoorn/)
 * (@ndoorn)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/remove-single-thumbnail/#post-4379390)
 * 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
 *  [dobleu](https://wordpress.org/support/users/dobleu/)
 * (@dobleu)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/remove-single-thumbnail/#post-4379493)
 * 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?
 *  [dobleu](https://wordpress.org/support/users/dobleu/)
 * (@dobleu)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/remove-single-thumbnail/#post-4379494)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/super-zoom-gallery.svg)
 * [Super Zoom Gallery](https://wordpress.org/plugins/super-zoom-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/super-zoom-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/super-zoom-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/super-zoom-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/super-zoom-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/super-zoom-gallery/reviews/)

## Tags

 * [gallery](https://wordpress.org/support/topic-tag/gallery/)
 * [thumbnail](https://wordpress.org/support/topic-tag/thumbnail/)
 * [zoom](https://wordpress.org/support/topic-tag/zoom/)

 * 3 replies
 * 3 participants
 * Last reply from: [dobleu](https://wordpress.org/support/users/dobleu/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/remove-single-thumbnail/#post-4379494)
 * Status: not resolved