• Resolved brixwork

    (@brixwork)


    I’ve successfully configured the W3 Total Cache plugin and JPGs under wp-content/uploads are routing fine to the cloudfront URL, except for the background images set by Avada template.

    <div class="fusion-fullwidth fullwidth-box fusion-builder-row-1 has-pattern-background has-mask-background fusion-parallax-none hundred-percent-fullwidth non-hundred-percent-height-scrolling" style="background-color: rgba(255,255,255,0);background-image: url('https://www.hovrmarketing.com/wp-content/uploads/2020/01/Intro-planet.jpg');background-position: center center;background-repeat: no-repeat;">

    Couldn’t find a way to override this while attaching the image in the UI (screenshots attached). The attachment screen also shows the local URL under my domain.

    Am I to understand that the W3 Total cache removal ONLY works on images placed as an attachment insert directly as an <img /> tag?

    Or is there some plugin conflict or a hook that I’m missing?

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @brixwork

    Thank you for reaching out and I am happy to assist you with this.
    This could mean the template is using a non-default function to display the image, skipping the?wp_get_attachment_url?filter. URLs got to the page via some non-regular way. The plugin does the best but may not know code business logic and there are still cases when code will “win” and put the original URL on the page.
    e.g. from javascript code when the URL is concatenated, or coming from ajax response when urls don’t pass the filter.
    I hope this clarifies this and answers your question.

    Thanks!

    Thread Starter brixwork

    (@brixwork)

    Ahh. I’m using an older version of Avada, so perhaps it’s time to upgrade, hoping they perhaps changed the function in the back-end that attaches background images to the style attribute of the DOM.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Cloudfront URL for wp-upload content do not work on background images’ is closed to new replies.