does svg file format can have background color?just yes or no!

[ad_1]

hello,

I have inserted svg function in function.php and I have exported as an example logo text in svg format from photoshop to my computer.

I uploaded this svg file to my theme but I see only text without background

I never used svg before is this normal ? I want to be sure if it is not normal then I have to look for the problem somewhere else?

this code lijn I added in my function.php:

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');

I want to use svg with advice of photoshop expert because ping format text logo’s maded with photoshop they are not good. they are all vague.

I want only to be sure if the svg has no background ?

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer