Title: Specific Gallery Thumbnails Size
Last modified: June 29, 2020

---

# Specific Gallery Thumbnails Size

 *  Resolved Anonymous User 9824923
 * (@anonymized-9824923)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/specific-gallery-thumbnails-size/)
 * Hallo!
 * I would like to know if there is any code I can use to change a specific gallery
   thumbnails size? The default is 150×150. What if I want 200×200 for just one 
   gallery?
 * Best regards,
 * Irina Sopas
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fspecific-gallery-thumbnails-size%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Prashant Singh](https://wordpress.org/support/users/prashantvatsh/)
 * (@prashantvatsh)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/specific-gallery-thumbnails-size/#post-13050776)
 * Hi Irina
 * Are you using the gallery shortcode for listing the images?
 * Kind regards
 *  Thread Starter Anonymous User 9824923
 * (@anonymized-9824923)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/specific-gallery-thumbnails-size/#post-13050852)
 * Hallo [@prashantvatsh](https://wordpress.org/support/users/prashantvatsh/), I
   hope you’re fine. I’m using the gallery. I create in a page and choose this page
   to show in the text area.
 * If you see in my front page PERSONAGENS CHICK-LIT I have a few galleries; I’m
   trying to use the same size the images appear in the 1st gallery where the “images”
   are SVG files. I need to reduce my homepage size.
 *  [Prashant Singh](https://wordpress.org/support/users/prashantvatsh/)
 * (@prashantvatsh)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/specific-gallery-thumbnails-size/#post-13050916)
 * There’s an option [https://prnt.sc/t8pvj9](https://prnt.sc/t8pvj9) to change 
   the image size. If you want a custom size then you have to register a new image
   size in WordPress using [https://developer.wordpress.org/reference/functions/add_image_size/](https://developer.wordpress.org/reference/functions/add_image_size/).
 *  Thread Starter Anonymous User 9824923
 * (@anonymized-9824923)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/specific-gallery-thumbnails-size/#post-13050930)
 * Hum, there’s no way to do it without the functions? With css just for the specific
   gallery?
 *  [Prashant Singh](https://wordpress.org/support/users/prashantvatsh/)
 * (@prashantvatsh)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/specific-gallery-thumbnails-size/#post-13051055)
 * For the second gallery, please try the following CSS code:
 *     ```
       .home div#gallery-4 .gallery-item img {
           width: 200px; // made width 200px
       }
       ```
   
 *  Thread Starter Anonymous User 9824923
 * (@anonymized-9824923)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/specific-gallery-thumbnails-size/#post-13051298)
 * Hallo [@prashantvatsh](https://wordpress.org/support/users/prashantvatsh/) I 
   tested the code, it didn’t work. I even tried to replace the .home for the page
   id 77
 * I’m doomed hahaha.
 *  [Prashant Singh](https://wordpress.org/support/users/prashantvatsh/)
 * (@prashantvatsh)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/specific-gallery-thumbnails-size/#post-13052800)
 * Did you try the ‘important’ rule? Try replacing `width: 200px;` with `width: 
   200px !important;`
 *  Thread Starter Anonymous User 9824923
 * (@anonymized-9824923)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/specific-gallery-thumbnails-size/#post-13053883)
 * Hallo! I’ve tried
 *     ```
       .home div#gallery-4 .gallery-item img {
           width: 200px!important;
       }
       ```
   
 * and
 *     ```
       .home div#gallery-4 .gallery-item img {
           width: 200px!important; // made width 200px
       }
       ```
   
 * also both codes with the page id 77
 * I hope you’re fine. Thanks for trying to help me.
 *  [Prashant Singh](https://wordpress.org/support/users/prashantvatsh/)
 * (@prashantvatsh)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/specific-gallery-thumbnails-size/#post-13053962)
 * Have you removed another gallery from your page? For the current gallery if you
   want to make 200*200px then please try the following CSS:
 *     ```
       .home div#gallery-2 .gallery-item img {
           width: 200px !important;
       }
       ```
   
    -  This reply was modified 5 years, 10 months ago by [Prashant Singh](https://wordpress.org/support/users/prashantvatsh/).
 *  Thread Starter Anonymous User 9824923
 * (@anonymized-9824923)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/specific-gallery-thumbnails-size/#post-13054009)
 * There is only one gallery, I removed the svg gallery.
 *  [Prashant Singh](https://wordpress.org/support/users/prashantvatsh/)
 * (@prashantvatsh)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/specific-gallery-thumbnails-size/#post-13054184)
 *     ```
       .home div#gallery-2 .gallery-item img {
           width: 200px !important;
       }
       ```
   
 * Please try this CSS for the current existing gallery.
 *  Thread Starter Anonymous User 9824923
 * (@anonymized-9824923)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/specific-gallery-thumbnails-size/#post-13054431)
 * Now it is working like a charm, so before you go, if I want to use that code 
   in the future for another gallery I use
 *     ```
       .page-id-13530 div#gallery-2 .gallery-item img {
           width: 160px!important;
       }
       ```
   
 * for example? i change the .home for the page id?
 *  [Prashant Singh](https://wordpress.org/support/users/prashantvatsh/)
 * (@prashantvatsh)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/specific-gallery-thumbnails-size/#post-13054492)
 * You need to check the gallery ID as well. For the current gallery it is gallery-
   2 so we are using #gallery-2. On the other page it may change so you need to 
   change that as well. Rest is fine.
 * Kind Regards
 *  Thread Starter Anonymous User 9824923
 * (@anonymized-9824923)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/specific-gallery-thumbnails-size/#post-13054677)
 * Oh I see, I like to learn. I will have that in mind, page id and gallery id. 
   With that I’ll be able to work out my non svg galleries.
 * AGAIN: THANK YOU SO MUCH FOR THE HELP. You really gave my website a boost with
   that.
 * I wish you the best and take care of yourself. Big hug.
 *  [Prashant Singh](https://wordpress.org/support/users/prashantvatsh/)
 * (@prashantvatsh)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/specific-gallery-thumbnails-size/#post-13054737)
 * Thanks. Take care 🙂

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

The topic ‘Specific Gallery Thumbnails Size’ is closed to new replies.

## Tags

 * [gallery](https://wordpress.org/support/topic-tag/gallery/)
 * [image](https://wordpress.org/support/topic-tag/image/)
 * [size](https://wordpress.org/support/topic-tag/size/)
 * [specific](https://wordpress.org/support/topic-tag/specific/)
 * [thumbnails](https://wordpress.org/support/topic-tag/thumbnails/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 15 replies
 * 2 participants
 * Last reply from: [Prashant Singh](https://wordpress.org/support/users/prashantvatsh/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/specific-gallery-thumbnails-size/#post-13054737)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
