I try to add a logo on my website using “change logo”. The original image size is 1140x220. It always asks me to crop my image (suggested 400x200). If I extend the selection to the whole image the quality is bad, and it uses a resized copy of the original image.
I tried to add custom CSS :
img.custom-logo {
width: 1140px!Important;
height: 220px!Important;
}
In order to be able to get the width and height the way you want, you’ll have to edit your functions.php file and change the height and width values in the code shown below to reflect what you’d like to have:
Please note that if you edit this code directly in the parent theme, you will lose it after an update, however, you may use the child theme attached and add the code to the functions.php from that child theme so that your customization is retained with updates.
You may also use the code snippets plugin to add your functions.php customizations in a more convenient manner.
Thanks for your support. I already have a child theme, I added the code you gave me in my functions.php but I still have the same problem, it sticks to 400x200. When I update directly the functions.php file of activello theme (parent theme) it works, it asks me for a 1140x220 logo and there’s no need to crop it.
My functions.php looks like :
<?php
// Queue parent style followed by child/customized style
add_action( ‘wp_enqueue_scripts’, ‘func_enqueue_child_styles’, 99);