• Resolved brandonlee781

    (@brandonlee781)


    I run a small school newspaper blog and we recently updated to 4.0. Before when I would add images to the post the background color would only wrap the image and any text in the caption would wrap to not stretch past the edge (which is how it looks in the visual editor). But as soon as I publish the post the image is the correct size but the caption spans the article and it pushes the copy down.

    It looks like this: here
    Site is here

    Is there any way to fix this besides my current strategy of manually adding line breaks?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Looks like it is working fine on this page: link

    Can you link to an example where it is messing up?

    Thread Starter brandonlee781

    (@brandonlee781)

    Here is one that I haven’t manually fixed.

    Totaltec, that example was fixed by adding line breaks to the images caption manually.

    Thanks.

    In style.css I see this code:

    .wp-caption {
    max-width: 100%;
    background: #EEE;
    padding: 8px;
    width: auto!important;
    }

    Just comment out the width like this:

    .wp-caption {
    max-width: 100%;
    background: #EEE;
    padding: 8px;
    /* width: auto!important; */
    }

    Does that fix it?

    Thread Starter brandonlee781

    (@brandonlee781)

    That sure did! Thank you so very much!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Media background stretching to fit caption, not image.’ is closed to new replies.