Title: [Plugin: Jetpack by WordPress.com] Tiled Galleries not using $content_width
Last modified: August 22, 2016

---

# [Plugin: Jetpack by WordPress.com] Tiled Galleries not using $content_width

 *  Resolved [ChristopherScott](https://wordpress.org/support/users/christopherscott/)
 * (@christopherscott)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/plugin-jetpack-by-wordpresscom-tiled-galleries-not-using-content_width/)
 * My website uses the Decode theme, which sets `$content_width` to 640. Jetpack
   tiled galleries always display with a width of 500 pixels. I would like Tiled
   Galleries to use the same width as the theme, since otherwise there is an unsightly
   gap. You can see an example webpage with this issue [here](http://blog.christopherscott.ca/travel-update-tokyo-part-1/).
 * I have followed the instructions given in [https://wordpress.org/support/topic/jetpack-tiled-galleries?replies=7](https://wordpress.org/support/topic/jetpack-tiled-galleries?replies=7),
   but the issue is not resolved. In particular, I have checked `functions.php` 
   to confirm that the following code is included:
 *     ```
       if ( ! isset( $content_width ) ) {
       		$content_width = 640; /* pixels */
       	}
       ```
   
 * The variable `$content_width` does not appear to be set anywhere else in the 
   theme. The issue persists after deactivating and reactivating Tiled Galleries.
   I am using Jetpack 3.3.2, which is the most recent release at the time of writing.
 * Note that the Decode theme is responsive; I intend to change `$content_width`
   to 846 (which is the largest size that the body expands to on a non-HiDPI display),
   but it is currently set to the default of 640. I have tried setting `$content_width`
   to various sizes, but in each case Tiled Galleries uses a width of 500px.

Viewing 1 replies (of 1 total)

 *  Thread Starter [ChristopherScott](https://wordpress.org/support/users/christopherscott/)
 * (@christopherscott)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/plugin-jetpack-by-wordpresscom-tiled-galleries-not-using-content_width/#post-5815192)
 * I have updated my site to use a child theme of Decode. I used the exact same 
   code as copied above in the `functions.php` of the child theme, and the issue
   was resolved. I suspect that `$content_width` is first set outside of the `functions.
   php` file in the Decode theme.
 * I hope that this helps someone else having a similar issue!

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Jetpack by WordPress.com] Tiled Galleries not using $content_width’
is closed to new replies.

## Tags

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

 * 1 reply
 * 1 participant
 * Last reply from: [ChristopherScott](https://wordpress.org/support/users/christopherscott/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/plugin-jetpack-by-wordpresscom-tiled-galleries-not-using-content_width/#post-5815192)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
