Hi all,
I would like to use an SVG file for my logo and I want to use svg across the site but I cant upload it onto wordpress, I used some code:
/* add svg */
function custom_mtypes( $m ){
$m[‘svg’] = ‘image/svg+xml’;
$m[‘svgz’] = ‘image/svg+xml’;
return $m;
}
add_filter( ‘upload_mimes’, ‘custom_mtypes’ );
I can now upload but I cant select to use it in the customiser.
I added some CSS:
.header-image .site-title > a {
float: left;
min-height: 114px;
width: 100%;
background: url(images/logo_grey.svg) no-repeat left top !important;
background-size: 338px 114px !important;
}
This has it showing now but correctly, and I also have to select a logo in the customiser and that gets hidden with the code i added above, but I feel this is all one big hack, can anyone help? thx