Should I edit media.php?
-
In the file media.php line 581 fucntion img_caption_shortcode
return '<div ' . $id . 'class="wp-caption ' . $align . '" style="width: ' . (10 + (int) $width) . 'px">
What can I do if I don’t want those 10 extra pixels in the width? I know I can delete it and that’s what I did, but when I update WP, it will be replaced.
BTW those 10 pixels are render in the div of wach attachment.
<div id=”attachment_563″ class=”wp-caption aligncenter” style=”width: 310px”>
The image with is 300 and the width it’s set to 310.
Is there a better way do it?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Should I edit media.php?’ is closed to new replies.