/*
Theme Name: Beaver Builder Child Theme
Theme URI: https://www.wpbeaverbuilder.com
Version: 1.0
Description: An example child theme that can be used as a starting point for custom development.
Author: The Beaver Builder Team
Author URI: https://www.fastlinemedia.com
template: bb-theme
*/

/* Add your custom styles here...Remember to change the Version number above! */ 

// Disable WordPress' automatic image scaling feature
add_filter( 'big_image_size_threshold', '__return_false' );

// Bunny Fonts replacing Google fonts connection - BB plugin
add_filter( 'fl_builder_google_fonts_domain', function( $domain ) {
	return 'https://fonts.bunny.net/'; 
});

// Bunny Fonts replacing Google fonts connection - BB Theme
add_filter( 'fl_theme_google_fonts_domain', function( $domain ) { 	
	return 'https://fonts.bunny.net/'; 
});

//add SVG support to Wordpress
function add_file_types_to_uploads($file_types){
$new_filetypes = array();
$new_filetypes['svg'] = 'image/svg+xml';
$file_types = array_merge($file_types, $new_filetypes );
return $file_types;
}
add_filter('upload_mimes', 'add_file_types_to_uploads');