• Resolved davidwebca

    (@davidwebca)


    It seems like the plugin is unable to replace links to the image that are inside content of the Gutenberg blocks. This either is an error or simply because it doesn’t search-replace inside textual content. That is coupled with the fact that old thumbnails don’t seem to be deleted/regenerated when there’s a new file uploaded and it makes it look like the plugin doesn’t work at all.

    In other words, if an image has been used in multiple pages with a gutenberg block, it seems like it’s impossible to replace it in multiple places at once with this plugin.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Gerard Blanco

    (@sixaxis)

    Hi, @davidwebca,

    On our tests it all worked well. Could you please

    1. Make sure you updated the plugin to the latest version?
    2. If that doesn’t solve the issue, provide us with a step by step guide on how exactly we can reproduce the issue?
    3. Thank you,

    Thread Starter davidwebca

    (@davidwebca)

    Hi! I’m definitely using the latest version, but one thing that I think could be the issue is that I’m using Soil from Roots (https://github.com/roots/soil). There’s a setting that allows a filter that removes all absolute urls and instead all links inside the database don’t contain the domain. If your plugin searches and tries to replace for a full url with the domain, I think it could be the issue.

    On one hand, even though Soil is pretty popular, I would totally understand if you wouldn’t want to adapt your code to their flag for “relative-urls”. Is the codebase of the plugin on github? I’m going to look through the code and make a pull request when I have time.

    Plugin Support Gerard Blanco

    (@sixaxis)

    Hi @davidwebca,

    You are totally right, Soil is the issue here. Feel free to go to https://github.com/short-pixel-optimizer/enable-media-replace and make a pull request ??

    Best,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Not replacing images in Gutenberg / WordPress core image block’ is closed to new replies.