Viewing 4 replies - 1 through 4 (of 4 total)
  • Could you provide a link to your site as well as a link to your logo file? What size would you like it?

    Found a link to your site in your other thread – http://37.60.224.142/~samphir6/

    Canard supports a logo of up to 400 wide by 90px high.

    It’s possible to override these dimensions with CSS, but it doesn’t look good as the image gets stretched out, blurred, and pixillated, so I don’t recommend it. Let me look into a more tricky custom function solution for a child theme and I’ll keep you posted.

    Thread Starter qqv0t

    (@qqv0t)

    Hi Kathryn

    Thanks for looking! So the theme has restricted the logo to this size.

    Instead I have uploaded this as a header image and have moved the header image to the top, taking away padding.

    Apparently they are working on this.

    Thanks again

    Glad you found a workaround using the custom header feature. This works OK because your logo has the same height and width – if you had a more rectangular logo, it would get cropped at smaller sizes, so the site logo option would be better.

    For anyone who may find this thread later, adding this function to a child theme* increases the maximum logo size to 400px square:

    function canard_child_site_logo() {
    	add_image_size( 'canard-logo', '400', '400' );
    }
    add_action( 'after_setup_theme', 'canard_child_site_logo', 11 );

    You’ll also need to add this to your child theme:

    .site-logo-link img {
      max-height: 400px;
    }

    You can of course adjust 400 to your preferred size, and you may need to adjust the margin above the site title if you keep it displayed.

    *Adding this code to a child theme means your tweaks won’t be overwritten every time you update the theme to the latest version. Here are some guides:

    http://codex.wordpress.org/Child_Themes
    http://op111.net/53/
    http://vimeo.com/39023468

    If your child theme doesn’t already have a functions.php file, create one using a plain-text editor and add an opening PHP tag at the top, before the function:

    <?php

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Canard logo change’ is closed to new replies.