• manvantara777

    (@manvantara777)


    Hello,
    Since I updated to 4.9, many pictures throughout my website have lost their right/left justify status and have ended up centered with the caption spreading out the width of the page. I suspect the problem might be with “Media: Use max-width for default captions (#33981)” that I saw in one of 4.9’s updates.

    I am surprised that I cannot find much about this topic except for one other post on the forums. I would have thought it affected everyone? As it is, its an intolerable situation as it has created a chaotic and amateurish look to my website that took many hours of crafting to get right.

    My web guy did a temporary CSS fix and reduced the margins a bit for the pics but they still look clumsy and out of whack. Can anyone tell me when there will be a fix for this or if there is one already? He also said:

    “There is now a requirement to set a maximum width for the captions, there didn’t used to be. I’ve aded a quick CSS fix which has put the bulk of images back as they should be, but I would like to make a more precise bit of code that sets the width to fit each image – I’m sure some ingenious coder will share that before too long as I’m sure this has affected many, many sites.”

    I have also lost my email sign up form for subscribers, can anyone tell me if there is fix for that also?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • bahead

    (@bahead)

    I had the same problem. Until there’s a patch, you can edit media.php in /wp-includes and change line 1566 from:

    . do_shortcode( $content ) . '<figcaption class="wp-caption-text" >' . $atts['caption'] . '</figcaption></figure>';

    to

    . do_shortcode( $content ) . '<figcaption class="wp-caption-text" ' . $style . '>' . $atts['caption'] . '</figcaption></figure>';

    By inserting $style in the caption, you are inserting the same max-width variable into figcaption that is used in figure. Previously, figcaption inherited the “width” attribute from figure, but it does not inherit the new “max-width” attribute from figure.

    IMO, this was very poor testing on the part of WP developers, who always seem to be in a rush to issue an update without conducting enough QC.

    • This reply was modified 7 years ago by bahead.
    Thread Starter manvantara777

    (@manvantara777)

    excellent, thanks, will pass on to my web guy!

    Dear Sirs,

    I have updated to 4.9.4, and broke the column layout, then came back to 4.8.5, but the problem persists.

    Now i understand that is the wp-caption, because if i take off it, no problem happens, but i use a lot the caption…

    Please take a look: https://clip2net.com/s/3SLn1gC

    I tried the change at media.php, but didn′t work too.

    Did you find a solution for this? i still want to use captions…

    Thanks and Regards,
    Tony

    yes, i am experiencing the same issue ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Is there a picture caption fix for 4.9 yet?’ is closed to new replies.