Skip to content

Instantly share code, notes, and snippets.

@JohnBunka
Created March 5, 2019 03:55
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/9fe2141cb237b43b5d5548f49cb5f2fd to your computer and use it in GitHub Desktop.
Save JohnBunka/9fe2141cb237b43b5d5548f49cb5f2fd to your computer and use it in GitHub Desktop.
Cleanup URL in Beaver Builder for CSS Purposes - Press Avenue
//Beaver Builder - Replace your actual URL with the CDN URL for CSS purposes
// You would adjust the URLs to fit your URLs. 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-amazing-cdn-uwl-here.com/', $css );
return $css;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment