Title: Gallery changes after changing a theme
Last modified: August 19, 2016

---

# Gallery changes after changing a theme

 *  [Dobida](https://wordpress.org/support/users/dobida/)
 * (@dobida)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/gallery-changes-after-changing-a-theme/)
 * Hey!
    When i’m changing a theme, my post’s gallery change too :S For example:
   that how it looks in the original wordpress theme- [http://img844.imageshack.us/img844/6262/screenshot20100818at955.png](http://img844.imageshack.us/img844/6262/screenshot20100818at955.png)
 * and that how it looks in another theme (it doesnt matter what theme it is, it
   happens in all of them-
    [http://img707.imageshack.us/img707/6330/screenshot20100818at956.png](http://img707.imageshack.us/img707/6330/screenshot20100818at956.png)
 * im using the original wordpress gallery + lightbox 2 (disabled the plugin, still
   doesnt work)
 * Thanks ! 😀
 * (site is [http://www.fia.co.il](http://www.fia.co.il))

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

 *  [jkovis](https://wordpress.org/support/users/jkovis/)
 * (@jkovis)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/gallery-changes-after-changing-a-theme/#post-1633155)
 * You’ll need to copy the following code from the 2010 theme files into the new
   theme CSS file:
 *     ```
       twentyten/style.css:
       #content .gallery {
       	margin: 0 auto 18px;
       }
       #content .gallery .gallery-item {
       	margin-top: 0;
       	text-align: center;
       	width: 33%;
       }
       #content .gallery img {
       	border: 2px solid #cfcfcf;
       }
       #content .gallery .gallery-caption {
       	color: #888;
       	font-size: 12px;
       	margin: 0 0 12px;
       }
       #content .gallery dl {
       	margin: 0;
       }
       #content .gallery img {
       	border: 10px solid #f1f1f1;
       }
       #content .gallery br+br {
       	display: none;
       }
   
       /twentyten/rtl.css:
       #content .gallery .gallery-caption {
       	margin-right: 0;
       }
   
       #content .gallery .gallery-item {
       	float: right;
       }
       ```
   
 * *Note that this might not work 100% if the new theme uses different xhtml class
   and id names.
 *  Thread Starter [Dobida](https://wordpress.org/support/users/dobida/)
 * (@dobida)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/gallery-changes-after-changing-a-theme/#post-1633258)
 * Thanks! but..
    It didn’t work. I’m not sure it something that in the theme’s 
   css file.. because it happens on those who works with version 3, too.

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

The topic ‘Gallery changes after changing a theme’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [Dobida](https://wordpress.org/support/users/dobida/)
 * Last activity: [15 years, 10 months ago](https://wordpress.org/support/topic/gallery-changes-after-changing-a-theme/#post-1633258)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
