Join the Soledad Facebook Users Group here
for Share, assistance, discussion, and Updates related to Soledad WordPress Theme.

If you can't create a new ticket - you can send us an email via our contact form and we will get back to you.

Okay
  Public Ticket #1910655
SVG logo in Schema
Closed

Comments

  •  3
    Vy started the conversation

    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?

    e8XyoZR.png

    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,700
    PenciDesign replied

    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:

    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

  •  3
    Vy replied

    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?

  •  2,700
    PenciDesign replied

    Hi,

    Unfortunately, currently there is no another way to do that..


    Best Regards,

    PenciDesign

  •  3
    Vy replied

    Alright, thank you again.