image caption is aligned center
-
I’m trying to get my image captions to align left rather than center.
The caption box from the HTML editor shows this: [caption id="attachment_1010" align="alignnone" width="887" caption="Black and White HDR can be very appealing just watch out for the same pitfalls like halos around objects that have a uniform sky as the background."]
I tried on a chance to change “alignnone” to “alignleft” Didn’t change the text position.
Any help is appreciated.
The blog I need help with is: (visible only to logged in users)
-
As I understand it, the caption alignment cannot be changed. It is center on all themes.
If you could give me a link to an example, I can play with it a little bit and see if I can figure out some trick to use.
-
-
Here is the link where I added image captions and they are aligned center – it looks odd when it goes to the second line.
thank you
-
The problem is, and this was something I always meant to work on, is that the caption code will not accept any inline CSS or any HTML formatting. I tried several different things and no-go.
It used to be as I remember that captions were all left-aligned, but so many complained that I think wordpress switched everything to center alignment.
-
You’d need to add it as HTML and not use the caption button/shortcode. It would end up looking something like the code below but with the specific URL and dimensions added:
<div class="wp-caption alignnone" style="width:IMAGE-WIDTH-PLUS-TENpx;"><a href="LINK-URL"><img src="IMAGE-URL" width="IMAGE-WIDTHpx" height="IMAGE-HEIGHTpx"></a><p class="wp-caption-text" style="text-align:left; "> CAPTION-TEXT</p></div> -
Note that deleting the caption code that WP.com uses will have a negative impact on your SEO, a minor one, but an effect nonetheless.
- The topic ‘image caption is aligned center’ is closed to new replies.