[Resolved] Image is smaller when caption is used

Home Forums Support [Resolved] Image is smaller when caption is used

Home Forums Support Image is smaller when caption is used

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #225210
    Nikola

    Hello,

    When the image caption is used an image is getting smaller, for 10px in width.

    It is the case in both pages and posts.

    I tested it several times. Any way to fix this?

    Thank you.

    #225261
    Tom
    Lead Developer
    Lead Developer

    WordPress sets a fixed width to images with captions.

    You could try something like this:

    add_action( 'after_setup_theme','generate_change_caption_padding' );
    function generate_change_caption_padding()
    {
        remove_filter( 'img_caption_shortcode_width', 'generate_remove_caption_padding' );
    }
    #225311
    Nikola

    You always have correct answer to any question. ๐Ÿ™‚ Thank you!

    #225339
    Tom
    Lead Developer
    Lead Developer

    No problem! ๐Ÿ™‚

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.