Home Forums Claremont Header logo re-sizing

This topic contains 3 replies, has 2 voices, and was last updated by  Andy 3 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1264

    jtinf
    Participant

    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.

    #1265

    Andy
    Keymaster

    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.

    #1271

    jtinf
    Participant

    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’,
    ) );

    #1273

    Andy
    Keymaster

    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' );
Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.