Photo captions and centering
-
Hey all, I’m a newb on WP and I have only posted a few times to my blog. The first few times I was able to easily center the captions under my photos by highlighting the caption and simply hitting the align center button. I have never messed with the HTML or style page and honestly I don’t know how to.
On the last post I made I cannot seem to get the captions to align to center. I looked at the html of this post compared to others and it does look different but I really don’t know what any of it means so that’s not really much help.
This is what it looks like on one of the posts where the captions are aligned correctly:
<div class=”mceTemp mceIEcenter” style=”text-align:center;”><dl class=”wp-caption aligncenter”><dt class=”wp-caption-dt”><img class=”size-large wp-image-113″ title=”Cervezas” src=”http://elsoloamericano.files.wordpress.com/2012/02/010.jpg?w=768″ alt=”” width=”768″ height=”1024″ /></dt><dd class=”wp-caption-dd”>Just one won’t hurt…</dd></dl></div>
This is what it looks like on the post where I cannot get it to align to center:
[caption id="attachment_143" align="aligncenter" width="1024" caption="Home away from home...away from home. My hostel in El Calafate"]<img class=”size-large wp-image-143″ title=”i Kue Ken” src=”http://elsoloamericano.files.wordpress.com/2012/03/patty-g-1612.jpg?w=1024″ alt=”” width=”1024″ height=”768″ />[/caption]
Thanks for any help you can provide. Sorry that I don’t have a better Idea of what I am doing. I really wish I did.
Thanks in advance.
The blog I need help with is: (visible only to logged in users)
-
Captioned images are pre-configured formulas you cannot edit. If you highlight the caption in the Visual editor and try to change its formatting, you only mess things up. If you wish to modify the formatting of captions, you need to use appropriate coding in the HTML editor – see here:
http://wpbtips.wordpress.com/2011/11/29/image-captions-no-dash-twenty-eleven/
You can also modify the formatting of captions once for all if you have the Custom Design upgrade. -
Thanks for the info. It’s strange because I definitely got the captions centered before without changing the coding. I will try to get it fixed the right way. Thanks again.
-
You’re welccome.
And yes, I didn’t say what you had tried is impossible, I said it messes things up: using any of the tools of the Visual editor to change the formatting of a caption disrupts the code of the captioned image and may result in various side-effects such a badly formatted frame or caption.
- The topic ‘Photo captions and centering’ is closed to new replies.