• Resolved Matt Scheidler

    (@matt6303)


    Twentysixteen has a logo size set to 240×240. How exactly do I go about changing these dimensions in my child theme, so that I might use the customizer to upload a logo with those dimensions?

Viewing 11 replies - 1 through 11 (of 11 total)
  • @matt6303: Try adding the following code to your child theme’s functions.php file (changing the dimensions to your desired values):

    add_action( 'after_setup_theme', 'child_custom_logo_setup', 11 );
    
    function child_custom_logo_setup() {
        $args = array(
        	'height' => 360,
        	'width' => 360,
        );
        add_theme_support( 'custom-logo', $args );
    }
    Thread Starter Matt Scheidler

    (@matt6303)

    Perfect! Thanks!

    Hello

    I had the same issue, and tried the above solution, but it didn’t work. I know I setup the child theme OK, because the overrides in the style.css are working. But I’m not sure if the functions.php is reading, or there’s a problem with the code.

    For the child theme functions.php, does it need to start with:

    <?php

    ?

    If I didn’t include this in the file, the whole site crashed, so I’m presuming it’s a yes.

    The above function is the only one I have in the child theme file, and I only changed the dimension numbers.

    Any thoughts as to what I did wrong?

    Thanks

    Neel

    img.custom-logo{
    width: 354px;
    height: 100px;
    }

    Hey,
    i made the settings above at my site https://www.theopinion.eu:

    .site-branding {
    width: 487px;
    }

    img.custom-logo{
    width: 487px;
    height: 95px;
    }

    but the logo is blurred now. It seems that the width does not work. I made no customizations.

    Please help.

    Regards, Patrick

    Okay, got it, it’s the .custom-logo tag in

    @media screen and (min-width: 61.5625em) {

    .custom-logo {
    max-width: 487px;
    }
    }

    Getting really frustrated. I am using the hades theme and am unable to find the style sheet where I can change the size of the logo. Any ideas?

    Thank you @net3431. That worked for me.

    Hello

    ————-
    function theme_prefix_setup() {
    add_theme_support( ‘custom-logo’, array(
    ‘height’ => 280,
    ‘width’ => 280,
    ‘flex-height’ => true,
    ) );
    }
    add_action( ‘after_setup_theme’, ‘theme_prefix_setup’ );
    ————-
    Step-1 : Put above code in function.php
    Step-2 : Re-Upload logo from admin customizer
    Step-3 : Now! refresh you front-end page… It will be working…

    Thanks

    hi
    i am using the gem theme,
    i have only the limit of 164×3 i would like to add some more like 300
    would anyone like to help me out?

    thanks
    shefi

    I am trying to increase the logo size on the website areteadvisors.com I have tried the suggestions on this page but they have not worked. The theme I am using is Lyrical which is a primer child theme.

    Does anyone know how I can increase the logo size with this theme?

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Change default logo size?’ is closed to new replies.