• Resolved Tyssen

    (@tyssen)


    Since updating a couple of sites to 4.4.1 I’ve had to install the disable responsive images plugin to get images showing up again in posts.

    I’ve read in a couple of places it’s because the themes aren’t compatible with the new responsive images feature but I can’t find any information about what needs to be done to make that happen.

    In all cases, it’s images that are embedded in the body and displayed with the the_content that aren’t showing up but it’s not all of them; some get the srcset attribute added to them, but not all of them.

    So how is WP working out which images get the new attribute and which don’t and is it because the images don’t exist yet and if so, is there something that needs to be done to get WP to generate all the new images?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Marius L. J.

    (@clorith)

    Hi,

    Themes don’t need to add support for the new responsive images, they will work on any site out of the box.

    Some users have had to rebuild their thumbnails, the plugin below should handle that for you 🙂
    https://wordpress.org/plugins/regenerate-thumbnails/

    Thread Starter Tyssen

    (@tyssen)

    Thanks, that looks like it’s done the trick. But isn’t this the sort of thing that should be added to the core? If a core update breaks your site, you shouldn’t have to download a plugin to fix it; the core update process should prompt you to do it.

    Moderator Marius L. J.

    (@clorith)

    Normally you have the image sizes required, but some themes and plugins make adjustments to the image sizes, causing what you are experiencing.

    These are edge cases though, which is why a plugin is the best solution, and not adding extra unused code in Core 🙂

    Thread Starter Tyssen

    (@tyssen)

    I don’t know about edge cases. I’ve updated four sites so far to 4.4.1, all running different themes, and only one of those hasn’t had an issue.

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

The topic ‘Making themes responsive images compatible’ is closed to new replies.