• I have my site exactly how I like it except one thing lingering thing. I need a little help finding out how to insert my logo in the Twenty Eleven theme in the upper left, removing the Site Title and Tagline.

    I guess I am asking what is the line of code I should use, what files do I insert it in, and where does the code go? I’m clearly not a PHPer.

Viewing 4 replies - 1 through 4 (of 4 total)
  • first up before we go too far…. please tell me you haven’t actually edited the twentyeleven theme??

    If so…. time for a child theme
    http://codex.wordpress.org/Child_Themes
    http://vudu.me/child

    Get that set up first, then we should be able to move forward

    Thread Starter Trueblue54

    (@trueblue54)

    Thanks for the reply. What ‘if not’? I havent tried editing the theme itself, so we should be good… however I have added plugins that give menu options for the theme. Will this affect it?

    How do I process being that I have not edited the theme?

    There are a few ways of doing this, The easiest would be using css.

    Find your the twentyeleven’s theme css file. Probably located at /wp-content/themes/twentyeleven/style.css

    Add the following classes anywhere in the file. I would add them near the top right about the “html, body, div, span, applet, object, iframe,” line.

    /* Custom logo */
    h1#site-title, h2#site-description {
    text-indent: -99999px;
    }

    body #branding hgroup{
    margin-top: 20px;
    background: url(/wp-content/themes/twentyeleven/images/logo.png) left center no-repeat;
    margin-bottom: -20px;
    }

    /*end custom logo */

    New if you name your logo logo.png, and put it in the /wp-content/themes/twentyeleven/images folder, it will show up on the site right where the text used to be.

    If you are concerned with not wanted to edit the twenty eleven theme you may also do this with a child theme.

    For that you will want to create a folder in the /wp-content/themes folder and name it whatever you want. twentyeleven-child is not a bad choice.

    Copy and paste the style.css file from the twentyeleven theme into this new folder.

    Delete the top section between the /* and the ———————- */ and replace it with the following code.

    /*
    Theme Name: Twenty Eleven Child
    Theme URI: http: //example.com/
    Description: Child theme for the Twenty Eleven theme
    Author: Your name here
    Author URI: http: //example.com/about/
    Template: twentyeleven
    Version: 0.1.0
    */

    You may edit this information to match yourself.

    Now add the custom classes to this new file like I mentioned above.

    Log into your site and go to Appearance=>Themes. You will see one named however you named the one above. Click on activate. Your site will now be running your child theme and be safe from upgrades and such.

    Hi,

    I have used the code on my child theme style.css and it displays the logo. I was wondering if I could make further adjustments as I would like my logo to be a lot smaller than it is and also Left justified?

    Thank you!

    Macegg

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Twenty Eleven theme modification’ is closed to new replies.