WordPress.org

Ready to get started?Download WordPress

Forums

Logo is being stretched (4 posts)

  1. speedie
    Member
    Posted 1 year ago #

    Hi,
    In my child theme for Twenty Eleven I have replaced the header text with a small 196x36 logo. However it's being stretched out to 578x106, see here:

    http://www.alectia.co.uk/intranet/

    I can't figure out why. I have constrained it to 196x36 in the code:

    <img src="http://www.alectia.co.uk/intranet/wp-content/uploads/2012/03/alectia_logo_rgb-green-resized.png" width="196" height="36">

    Can anyone help?

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    You may need to change the header image dimensions in the child theme. The dimensions are set up within the twentyeleven_setup() function:

    $custom_header_support = array(
    		// The default header text color.
    		'default-text-color' => '000',
    		// The height and width of our custom header.
    		'width' => apply_filters( 'twentyeleven_header_image_width', 1000 ),
    		'height' => apply_filters( 'twentyeleven_header_image_height', 288 ),
    		// Support flexible heights.
    		'flex-height' => true,
    		// Random image rotation by default.
    		'random-default' => true,
    		// Callback for styling the header.
    		'wp-head-callback' => 'twentyeleven_header_style',
    		// Callback for styling the header preview in the admin.
    		'admin-head-callback' => 'twentyeleven_admin_header_style',
    		// Callback used to display the header preview in the admin.
    		'admin-preview-callback' => 'twentyeleven_admin_header_image',
    	);
  3. speedie
    Member
    Posted 1 year ago #

    Hi,
    Thanks for your help - where do I find the function?

  4. esmi
    Forum Moderator
    Posted 1 year ago #

    Within the twentyeleven_setup() function in functions.php

Topic Closed

This topic has been closed to new replies.

About this Topic