@alchymyth
The text-indent doesn't work for me in .wp-caption p.wp-caption-text, I can only get it to work in .wp-caption where it moves the image too - and then I've realised it only indents the first line of text so even if it worked, it would be no use on captions running to more than two lines - ooops.
As you first said in your first reply, fixing the functions.php is the real cure. My problem is i do not know php. Where exactly do I insert the missing code:
. do_shortcode( $content ) . '<p class="wp-caption-text">' . $caption . '</p></div>';
Into your code:
}
endif;
add_shortcode('wp_caption', 'slim_img_caption_shortcode');
add_shortcode('caption', 'slim_img_caption_shortcode');
function slim_img_caption_shortcode($attr, $content = null) {
// Allow plugins/themes to override the default caption template.
$output = apply_filters('img_caption_shortcode', '', $attr, $content);
if ( $output != '' )
return $output;
extract(shortcode_atts(array(
'id' => '',
'align' => 'alignnone',
'width' => '',
'caption' => ''
), $attr));
if ( 1 > (int) $width || empty($caption) )
return $content;
if ( $id ) $id = 'id="' . esc_attr($id) . '" ';
$frame_width = 0; // frame width in pixels per side //
return '<div ' . $id . 'class="wp-caption ' . esc_attr($align) . '" style="width: ' . ( 2 * $framewidth + (int) $width) . 'px">'
. do_shortcode( $content ) . '<p>' . $caption . '</p></div>';
}
I've tried pasting it in in various places but I'm guessing and I keep getting syntax errors.
Thanks
t