Spacing for Captions in the WordPress 3.5 Gallery
On some WordPress sites I have worked on the captions run together when a gallery with captions is inserted into the post. This doesn’t happen on all sites and seems to be a CSS conflict.
This issue, however, can be quickly fixed by adding a small piece of CSS to your style sheet.
Go to Appearance > Editor. You should be on the edit screen for the stylesheet, style.css
Add the following and save the file:
.gallery-item .gallery-caption {padding: 1em 2.5em;}
The caption problem should be corrected.
I have not experienced this issue on all sites. For example, the captions are spaced fine on this one. But, if you do run into this problem, this CSS should help.
photo credit: anotherphotograph
Keep Reading:
Did you enjoy this article? I can assist you with your WordPress or Facebook project. Contact me and I will provide you with an estimate. You can also connect with me on Facebook or follow me on Twitter. If you are looking for Hosting, WordPress Theme, Newsletter or other recommendations, please view my detailed list.










February 28, 2013 at 1:14 pm
Nice thanks for the fix, I wondered why this was going on on some sites and not others.