Skip to content

Instantly share code, notes, and snippets.

@JohnBunka
Created February 6, 2020 17:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JohnBunka/47fac8c1f649e05ec3dd9b710e846a0a to your computer and use it in GitHub Desktop.
Save JohnBunka/47fac8c1f649e05ec3dd9b710e846a0a to your computer and use it in GitHub Desktop.
Fix images using CloudFlare hotlink protection and Beaver Builder
// The first URL is your actual URL. The second is your CDN url.
add_filter( 'fl_builder_render_css', function( $css ) {
$css = str_replace( 'https://pressavenue.com/', 'https://your.cdn.com/', $css );
return $css;
});
@JohnBunka
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment