• Home
    • Privacy Policy
    • Contact
  • How to
  • Tips
  • Android
  • WordPress
  • Blogger Tips & Tricks
  • Google
  • Facebook
  • Genesis Tutorials

A New Tab

How to add logo to twenty eleven wordpress theme



We have discussed how to customize wordpress twenty ten in our previous posts. We also gave a detailed instructions about how to add logo and banner to your wordpress twenty ten theme. Since Twenty eleven is the updated version of twenty ten ( ofcourse not exactly ) with its cool features like adjustable colors, look, HTML5 and speed we thought of writing hwo to add logo to this theme also.

If you want to know better about twenty eleven you can read my article features of twenty eleven. which helps you knowing better about one of the best theme of wordpress which comes default Twenty Eleven.

Before stepping in, I suggest you to create a child theme for twenty eleven, creating child theme is the best and recommended way so that you will get the updates of origianal theme and at the same time you can also customize as you wish. If you dont know how create a child theme, you can read my article how to create a child theme for wordpress twenty eleven.

Once you are aware of creating a child theme you can follow the below procedure to add logo to twenty eleven theme

How to add logo to twenty eleven wordpress theme

#1. Login to your Dashboard.

#2.Click Apperance -> Editor

#3. Open header.php file and check for below line

<?php bloginfo( 'name' ); ?>

#4. delete the particular code ( exactly above one ) and replace it with the below code.

<img src="http://yoursite.com/logo.png" alt="your site name" width="200" height="35"/>

#5. Now you have to remove the description that comes along with your logo. For this just remove the below code.

<?php bloginfo( 'description' ); ?>

#6. Last step upload your logo to your home folder and name it as logo.png, if you are uploading some where or if you have any other dimensions for your logo update code at point4 ( #4 ).

Thats it, now enjoy your favourite twenty eleven theme with logo. If you have any questions dont hesitate to ask.

Update Oct 06 : If you find your image is stretched too much then check the following options

  • Make sure your image size and size specified at #4 are one and the same
  • if the problem continuous go  to Dashboard->Apperance->Editor->Style.css and check for below part of code
    #branding img {
        height: auto;
        margin-bottom: -7px;
        width: 100%;
    }
    

    and remove width:100%



You might also like

  1. How to Remove search box wordpress Twenty Eleven
  2. How to create child theme for Twenty Eleven WordPress theme
  3. Coming, New WordPress Default theme: Twenty Eleven
  4. Add logo to twentyten wordpress theme
  5. Customize WordPress Twenty Ten Theme
  6. Add Logo to Genesis Theme
  7. How to add logo and banner in twentyten wordpress theme header
Filed Under: Twenty Eleven

Comments

  1. Dave says:
    29/09/2011 at 2:42 pm

    Heya,

    I tried this but for some reason the image that is shown on page looks a bit pixelated. But when i look at the image source it looks crisp http://manwithavan.co.nz/wp-content/uploads/2011/09/manwithavanph.png
    I don’t suppose you have an ideas on why it’s enlarging the image? I tried to use the exact image size in code but this didnt work so removed image size attributes and it’s still the same? Cheers for you time :)
    Dave

    Reply
    • aswin says:
      29/09/2011 at 7:05 pm

      Hi Dave,

      I checked your site, You are getting like this because your image size is 425px × 90px scaled to 533px × 113px, please check once

      Reply
  2. kalyan says:
    29/09/2011 at 4:31 pm

    HI , wondering on how to do this, thanks for the article

    Reply
    • aswin says:
      29/09/2011 at 6:59 pm

      Thanks Kalyan

      Reply
  3. Dori says:
    29/09/2011 at 7:27 pm

    I’ve followed the tutorial, but the logo gets stretched out and is ignoring the image size attributes. What am I doing wrong?

    Reply
    • aswin says:
      02/10/2011 at 9:50 pm

      I will check that, please provide the URL where you are facing problem ?

      Reply
  4. Matt says:
    03/10/2011 at 7:03 pm

    I’m having this problem as well, I can’t seem to change the size, it’s stretching it well beyond the actual size and ignoring the size attributes.

    Reply
    • aswin says:
      04/10/2011 at 1:05 am

      Hi Matt,
      If you can observe the #4 point, I gave width=200, height=35. Try to make your logo with the same dimension, If not change the width and height values according to your logo dimesions, Then you wont face any strech problem

      Reply
  5. Manj says:
    05/10/2011 at 2:02 pm

    Hi aswin, I have added a logo at size 220 x 185 but it just appears massive on the header, is there any way I could make it smaller, changing the pixel size doesn’t help, thank you for your help, your site is brilliant.

    Reply
    • aswin says:
      06/10/2011 at 11:02 am

      Hi Manj,

      I checked your code, open dashboard->Editor->style.css
      check for the below part of code

      #branding img {
          height: auto;
          margin-bottom: -7px;
          width: 100%;
      }
      

      and remove width:100% line it will work
      width: 100%;

      Reply
  6. Caro says:
    05/10/2011 at 11:50 pm

    I have tried the same, it is always stretching the image. I have tried:
    - reducing the size of the image to width of 35px
    - adding ‘px’ to the numbers
    - removing width and height alltogether

    Since the image always seems to appear at the same size, I expect somewhere else we need to change something too?

    Reply
    • aswin says:
      06/10/2011 at 11:03 am

      Hi Caro

      I checked your code, open dashboard->Editor->style.css
      check for the below part of code

      	
      #branding img {
          height: auto;
          margin-bottom: -7px;
          width: 100%;
      }
      

      and remove width:100% line it will work
      width: 100%;

      Reply
      • Caro says:
        07/10/2011 at 11:40 am

        Thanks Aswin, that worked!

        Reply
        • aswin says:
          07/10/2011 at 1:40 pm

          Glad that worked for you :-)

          Reply
          • bjbuller says:
            19/11/2011 at 12:57 am

            I tried removing that line using the child’s css and even tried it in the original theme’s style.css. I’m having no luck. Am I stuck?

          • bjbuller says:
            19/11/2011 at 3:37 am

            For some reason, when I updated the Jetpack plugin, the thing went to its normal size… That did the trick, whatever it was.

          • zykanaks says:
            15/06/2012 at 11:18 pm

            edit the style.css of the main twelve eleven
            not the child

  7. gareth says:
    16/10/2011 at 8:51 pm

    i followed all of your steps but it didnt work its massive, whats the recommended logo size aswell?

    Reply
    • aswin says:
      18/10/2011 at 8:08 am

      Make a logo size of 200X35

      Reply
  8. Dave says:
    29/11/2011 at 4:30 am

    Hi tried the logo but seem to have gone wrong somewhere can you advise.

    Sorry quite new to this

    Thanks

    Dave

    Reply
    • aswin says:
      30/11/2011 at 7:09 pm

      May I know what exaclty the problem is ?

      Reply
  9. nandita says:
    01/12/2011 at 3:45 pm

    hello,
    I did exactly what u have explained . What i get is cross inside a box . the logo is not displayed . My logo is of size 180 and 36 .

    plz help

    Reply
    • aswin says:
      01/12/2011 at 6:49 pm

      Give your blog URL I will look and let you know

      Reply
  10. kuldeep says:
    03/12/2011 at 6:41 pm

    Is it possible to do the same in twenty eleven child theme ?
    I’m to all this, so just downloaded a child theme from a site and it dont have header.php file.
    Please, looking for your suggestions.

    Thanks.

    Reply
    • kuldeep says:
      03/12/2011 at 6:47 pm

      I meant:
      *I’m new to all this.

      Did, you mean doing this editing in parent theme ? coz i dont see header.php in my child theme.

      Im reallly confused!! please help.

      Reply
      • aswin says:
        12/12/2011 at 10:47 pm

        No Dont touch the parent theme, better to do in the child theme, copy the header.php from the parent theme to the child theme folder

        Reply
  11. vipul says:
    08/04/2012 at 9:09 am

    Thanks for the help. Good explanation.

    Reply
  12. whitney says:
    12/04/2012 at 10:26 pm

    awesome! this worked perfect!!

    Reply
  13. sanchit says:
    02/05/2012 at 1:32 pm

    hi
    1,,,when i am updating this below thing on my header.php

    with my logo adress it is showing some error saying some syntax error ‘<'
    2,,,i wana add a page in which i have same thing(name ,email,phone no,comment) in contact us page but it will redirect to my email id how this is possible
    3,,, i wana delet this page name written above the page
    plz help me out

    Reply
    • aswin says:
      06/05/2012 at 10:09 am

      Please provide your site URL so that I can check and say

      Reply
  14. Sholac says:
    16/05/2012 at 4:55 pm

    Thanks, works great!

    Reply
  15. jessica says:
    28/05/2012 at 6:08 pm

    Thanks, this is a great help. Tell me, though, if this theme has an update, will I need to do this again to the newly uploaded files? Thanks!

    Reply
    • aswin says:
      30/05/2012 at 1:07 pm

      create a child theme for 2011
      then though there is an update for theme, you wont loose your changes

      Reply
  16. jessica says:
    28/05/2012 at 7:26 pm

    one more thing, since I took ‘width: 100%;’ out of the #branding img in css – the featured image now runs off the page. should I resize it? I sized it to 1000×288.

    thanks again.

    Reply
    • aswin says:
      30/05/2012 at 1:08 pm

      remove width:100 % in your code it will work

      Reply
  17. jessica says:
    07/06/2012 at 7:19 pm

    Looks great, thanks!
    Now, if I want the tagline to appear to the right of the logo in the header – how do I change that?
    Thanks!

    Reply
  18. Rene says:
    22/06/2012 at 7:45 am

    Hi Aswin.

    I wanted to thank you very much for helping us WordPress rookies finding solutions for common problems. Your solution worked for me. The only thing is that it moverd my search box to my menu bar. Would you know how to put that search box back where it was? Thanks again for your much appreciated consideration and generosity!

    Rene

    Reply
    • aswin says:
      12/07/2012 at 10:27 pm

      Just remove the code what you edit :) ,
      if you forgot what you edit, download the twenty eleven theme and copy and replace the code edited,

      Reply
  19. Brandy says:
    10/08/2012 at 4:38 am

    I have followed instructions from at least 10 other people on this, and yours was the only one that worked. THANK YOU!!!

    Reply
  20. Matias says:
    18/08/2012 at 8:08 am

    Thanks!
    Works perfectly for me!

    Reply
  21. Pradeeka Seneviratne says:
    20/09/2012 at 8:03 pm

    change width:100% to px
    see the last two lines. Able to fix the problem using this method.

    #branding img {
    height: auto;
    margin-bottom: -7px;
    width:200px;
    height:35px;
    }

    Reply
  22. permanentpeace says:
    17/02/2013 at 5:25 am

    total newbie here. I have followed the instructions and changed the appropriate code in the header.php file. What ‘Home’ Folder do i upload my logo to? Im not sure which is the home folder.

    Thanks for the help!

    Reply

Speak Your Mind Cancel reply

*

*

Recent Articles

  • FaceBook introduced Graph Search Friends, Photos : What is it ?
  • How to terminate the account in WHM cPanel
  • How to create a new account in WHM cPanel
  • Unlock Pattern Lock Android tablet-Phone
  • Find Android Version and Update your Samsung Galaxy Tab Automatically
  • Find IMEI Number of your Samsung Galaxy Tab
  • Clean and Speed up chrome with one click

Return to top of page

Copyright © 2013 · Genesis Sample Theme on Genesis Framework · WordPress · Log in