Change logo size

Hi, i’m using Astrid for a website and i would like to change the logo header size.

Using CSS (width: XXX, height: XXX and max-width / height) the logo becomes very blurry.

I tried the PHP snippets method told here (Upload larger logo image) but the logo size didn’t change and it ruined my site design, so i uninstalled the extension.

Thanks

Loïck

Hello there,

Try this code and apply it with either Code Snippets or child theme’s functions.php.

    add_action( 'after_setup_theme', 'child_custom_logo_setup', 11 );
    function child_custom_logo_setup() {
        $args = array(
        	'height' => 400,
        	'width' => 500,
                'flex-height' => true,
    	        'flex-width'  => true,			
        );
        add_theme_support( 'custom-logo', $args );
    }

Then re-upload your logo and skip cropping option. Let me know how it works for you.

Regards,
Kharis

Hi, thx for your advice.

Logo still appears blurry when i change it’s size, how do i skip the cropping option ?

After uploading/choosing an image, you’ll have two buttons at the bottom right.

36 PM

Share a link to your site, please. Maybe I could suggest you with CSS code solution.

Regards,
Kharis

Actually i can’t see the “Skip Cropping” button, i only see the “crop image” button.

The site is not uploaded yet, i’m currently using Wamp and will upload it as soon as i have the FTP accesses

Have you applied this code?

Regards,
Kharis

Hi .

I don’t know why, but now i can change my logo size without it being blurry.

Thanks for your help

Awesome! Glad to hear you got it sorted for now.

Please let us know in a new topic if you have any further questions, or if we can provide you with any other assistance.

Regards,
Kharis