Comments 3Vy started the conversationFebruary 26, 2019 at 6:52amHi there, My website using the SVG logo and this makes my website logo schema error. I know the JSON Schema requires the .png or .jpg formats but not .svg, is there a way I can still use my SVG logo without making Schema error? I tried adding json-schema-validar.php file to my chid theme, change lines 169 and 266 to my .png logo but it looks like everything doesn't work. 2,700PenciDesign repliedFebruary 26, 2019 at 8:36amHi, To do that, you need to edit the file inside the theme. Please open soledad/inc/json-schema-validar.php file and on line 326: public static function get_url_logo() { $logo = get_template_directory_uri() . '/images/logo.png'; if( get_theme_mod( 'penci_logo' ) ) { $logo = get_theme_mod( 'penci_logo' ); } return $logo; } Change it to: public static function get_url_logo() { return 'your-logo-url-put-here'; } Note: Let's upload an version logo image with .png or .jpg formats and get URL of that logo image and replace with 'your-logo-url-put-here' on the above code. Best Regards, PenciDesign 3Vy repliedFebruary 26, 2019 at 8:55amThank you.But I was afraid to fix the file in theme's root directory, because I had to fix it again after each update. Is there any more usable way? 2,700PenciDesign repliedFebruary 26, 2019 at 8:57amHi,Unfortunately, currently there is no another way to do that..Best Regards,PenciDesign 3Vy repliedFebruary 26, 2019 at 8:59amAlright, thank you again. Sign in to reply ...
Hi there,
My website using the SVG logo and this makes my website logo schema error.
I know the JSON Schema requires the .png or .jpg formats but not .svg, is there a way I can still use my SVG logo without making Schema error?
I tried adding json-schema-validar.php file to my chid theme, change lines 169 and 266 to my .png logo but it looks like everything doesn't work.
Hi,
To do that, you need to edit the file inside the theme. Please open soledad/inc/json-schema-validar.php file and on line 326:
Change it to:
Note:
Let's upload an version logo image with .png or .jpg formats and get URL of that logo image and replace with 'your-logo-url-put-here' on the above code.
Best Regards,
PenciDesign
Thank you.
But I was afraid to fix the file in theme's root directory, because I had to fix it again after each update. Is there any more usable way?
Hi,
Unfortunately, currently there is no another way to do that..
Best Regards,
PenciDesign
Alright, thank you again.