i'm struggling with this, even though i thought it would be quite simple.
So i tried to simply put them in Search and Replace, then with regex but aparently i'm not doing something right since nothing happens on the front-end. The other replacements work fine, so it's not about the extension, it's me 🙂
I need to replace:
style="background-image: url(/images/color_658cc2.png)"
with:
style="background: #1f3568; background-image: none !important;"
Urls are a bit tricky to replace, as they can be different at the moment ReReplacer sees the html. Joomla adjusts urls in the latest stage (like adding a prepending slash).
it's an image set as background in a module (and i have like a lot of them), so i'd preffer to sort it out with rr in case we need them again in the future.
What i currently have in settings is:
Search:
style="background-image: url\(/?images/color_658cc2\.png\)"
Replace:
style="background: #1f3568; background-image: none !important;"
Regular Expressions: Yes
Thorough: Yes
Enable in area: Everywhere
Enable in HTML tags: Yes
Everything else is set to No.
Ok i've just updated the site to J4, and this rule is not working anymore. Is there anything different for J4 i need to take into cosideration or it's something else in question?
The login details are still same in case you need to check it out.