Remove background from captioned images in Twenty Eleven
-
I’d like to have the option of not having the polaroid type frame on captioned images in posts in Twenty Eleven. Can they be removed?
The blog I need help with is: (visible only to logged in users)
-
You will have to do it on an image by image basis then in the post editor in the HTML tab. You will add this
background: none;to the opening div for the captioned image so that it looks similar to this
<div class="wp-caption alignright" style="width: 250px; background: none;"> -
-
-
[caption id="" align="alignright" width="240"]<img src=”http://farm8.staticflickr.com/7218/7236197272_c00097bf22_m.jpg” alt=”Union Station Timetable” width=”240″ height=”180″ /> Every departure’s on time?
A traveler’s dream.
And highly unlikely.[/caption]
This is the coding for the photo and caption in my post’s html. i don’t see code like you mention? -
Sorry, I fogot the caption stuff looks different in the editor than it does in the source code. Make the opening caption bit look like this:
[caption id="" style="background: none;" align="alignright" width="240"] -
-
Something has changed with 2010 I think. I’ve used this before to get rid of backgrounds on captions. I can do it on all captioned images via CSS. If you want to do that, then add this to your custom CSS.
.wp-caption { background: none; }
- The topic ‘Remove background from captioned images in Twenty Eleven’ is closed to new replies.