Created
February 6, 2020 17:26
-
-
Save JohnBunka/47fac8c1f649e05ec3dd9b710e846a0a to your computer and use it in GitHub Desktop.
Fix images using CloudFlare hotlink protection and Beaver Builder
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Full blog post and explanation here https://pressavenue.com/beaver-builder-row-background-image-fix/