- This topic has 3 replies, 2 voices, and was last updated 7 years, 9 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- The topic ‘Header logo re-sizing’ is closed to new replies.
Is it possible to change the maximum size of the header logo? Currently it is 300px x 105px. I need it to be 400px x 200 px.
Look in the functions.php file for the add_theme_support( 'custom-logo' )
function. This contains height and width.
Recommend to add to a child theme so that your changes are not undone when the theme is updated.
I copied the following from the main file and added it to the child theme, but it did not work. Did I miss something?
// Support for Custom Logo
add_theme_support(‘custom-logo’, array(
‘width’ => ‘400’,
‘height’ => ‘200’,
) );
It needs to be wrapped in the claremont_setup() function, so the code would be:
function claremont_setup() {
add_theme_support('custom-logo', array(
'width' => '400',
'height' => '200',
) );
}
add_action( 'after_setup_theme', 'claremont_setup' );