We are using the WP Offload Media plugin with X theme. I have noticed when adding page specific CSS for background images, when the page is saved in Cornerstone, the URLs have been rewritten to the local URLs instead of the S3.
For Example: Adding the following to Page CSS -
.some-class{background-image: url('https://domain.s3.amazonaws.com/wp-content/uploads/2021/01/28134917/nameofimage-1024x576.jpg')}
upon saving the page and refreshing the content I see
.some-class{background-image: url('https://domain.com/wp-content/uploads/2021/01/nameofimage-1024x576.jpg')}
From what I have read in other form threads, there is a filter in Offload Media that runs upon save and looks for URLs from the media library and replaces them with the S3 URL.
I have Rewrite Media URLs and Remove Files From Server selected in the plugin.
I am not having any issues with images in the main page, just images referenced in the css.
My question is why would the URL replacement be working backwards for URLS found in page or global CSS? Is there a filter in X theme that is changing it back or not allowing the plugin’s filter to fire correctly upon page save?