WordPress recently added the Custom Logo feature which is pretty neat. Storefront 2.0 also added support for this recently. By default, Storefront will set the logo to be 110 by 470 – which is pretty small. If you want to make that bigger, you just need to override the theme function using something like this.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Add this to your theme's functions.php | |
function marce_change_custom_logo_size() { | |
add_theme_support( 'custom-logo', array( | |
'height' => 400, | |
'width' => 400, | |
'flex-width' => true, | |
) ); | |
} | |
add_action( 'after_setup_theme', 'marce_change_custom_logo_size', 30 ); |
Make sure you remove the opening php
tag if that’s already in your functions.php
file, and change the values of 400
to whatever you want.