can't upload SVG file for logo

Hi, I have used this theme before and I had no issue using SVG file as header logo.
now downloaded the latest version and can’t upload SVG file-
could you help me with this issue?

Hello there,

I hope you are doing well today.

Please try using the following plugin to enable SVG support so that you can use SVG images in WordPress:

Best Regards,

Hi, thank you for the fast reply-
I’m sorry I did not mention that I already have SVG support plugin activated,
and also successfully upload SVG file in wordpress media.
However, I am having an issue uploading it through Theme customize > site identity> upload logo.
When i choose SVG file as logo, it won’t let me even crop, and only shows “crop” bottom on the bottom.
Even if I click it without cropping, the error message shows up and say “error cropping your image”, and won’t let me do anything further.
If you can help me with this issue, that would be wonderful. Thank you!

Hey there,
Hope you’re doing well today

This is more of a WordPress issue than anything else. Cropping for SVG isn’t something that has been supported in WordPress for a long time and as a result, getting that to work, you could do one of two things:

  1. Crop it beforehand
  2. Use another plugin like Only Tweaker to enable SVG support which provides the function to edit SVGs in WordPress Media

I hope this helps :slight_smile:

Best Regards,

So I figure this out, so I am just sharing here.
I guess after the wordpress updates it no longer let you upload SVG file from customizer-
you can fix this by going to function.php and add like this:

		 * Add support for the custom logo functionality
		add_theme_support( 'custom-logo', array(
			'height'     => 55,
			'width'      => 135,
			'flex-width' => true,
			'flex-height' => true,
		) );

just add ‘flex-height’ => true, at the bottom and you will be able to skip the cropping part at the customizer when you upload logo.

Hey there,
Hope you’re doing well today

Thank you so much for the solution, we highly appreciate that. Good looking out :slight_smile:

Please let me know if there are any other questions that I may help with. :slight_smile:

Best Regards,