• Resolved martcol

    (@hotmale)


    I have never had a problem with this before but the width of the caption is wider than the image.

    Not sure what else to say really except that I can’t show the page because it is still in draft.

Viewing 2 replies - 1 through 2 (of 2 total)
  • depends on your theme.

    the default caption shortcode function has a filter to influence the extra width – default is 10px.

    Adding a filter function for it in functions.php of your (child) theme should help to remove the extra 10px from the front wp-caption size;
    example:

    add_filter( 'img_caption_shortcode_width', 'slim_img_caption_shortcode' );
    function slim_img_caption_shortcode( $caption_width ) {
    return 0; 
    }
    • This reply was modified 7 years, 8 months ago by Michael.
    Thread Starter martcol

    (@hotmale)

    Thank you,

    Very grateful for your help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Catption width wider that image.’ is closed to new replies.