• Can we use images from a CDN such as google storage or aws instead of loading inline images from theme in block patterns? Are there any terms/conditions that restrict me from doing so? I have seen a theme called Bagberry in WooCommerce loading patterns images from cdn. So I thought I might give it a go as well.

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    As you likely know, WP wants to have all images hosted on its own server. In order to instead pull images from a CDN, I think you’d need to develop (or find existing) a custom image block that supports CDN storage. You might investigate how this Bagberry theme accomplishes this and use it as guidance for your own efforts.

    There are optimization plugins that dynamically alter local image requests to fetch them from a CDN instead. The original image still resides locally, but plugin code causes the file to be fetched from the CDN instead.

Viewing 1 replies (of 1 total)
  • The topic ‘Using images from CDN in Block patterns’ is closed to new replies.