//

How to Customize Twenty Ten

WP Greet Box icon
Hello there! If you are new here, you might want to subscribe to the RSS feed for updates on this topic.

Twenty Ten WordPress Theme

Twenty Ten is the new default theme for WordPress 3.0 and makes great use of all the new features this new major release brings so it seems to make sense to start with this as a base for your next WordPress based project’s theme yeah?

Well before you start jumping in and hacking the code you need to realise Twenty Ten is in fact a Parent Theme and you can make ALL your required CSS / Function and Template modifications in a subdirectory so when the main Twenty Theme is updated all those tweaks and hacks won’t be lost for ever – cool ay?

Of course WordPress do a great job of explaining how to start working with Child Themes using Twenty Ten as the base here but we thought we would summarise our take on this for those who need the bare minimum to get started: Got your favourite PHP / CSS editor ready? Great let’s begin…

How to set up your directory should be set up

The most important aspect of getting your new child theme working is making sure you have the required files in the correct place like this:

  • web root
    • wp-content
      • themes (directory where all your themes are)
        • twentyten (directory where the Twenty Ten Theme is)
        • your-new-twentyten-child (directory of your new child theme – you can call this anything!)
          • style.css (the only 100% required file in a child theme which must be named style.css)
          • functions.php – this is optional but is the place to add new functions to your theme. It is loaded in addition to the parent’s functions.php and right before the parent’s file.
          • header.php, index.php etc – Again you don’t need these but the best thing to do is make a copy of the original Twenty Ten Theme files you want to modify and store them here. Then edit these copies to remove things that you cannot do via the nice new options within the WordPress Admin area and be safe in the knowledge you can always just delete your copies to get back to the Twenty Ten Originals

What needs to be in the child style.css file as a bare minimum

The following is the standard

/*
Theme Name:     My Twenty Ten Child
Theme URI:      http: //thebloghouse.com
Description:    My child theme for the Twenty Ten theme
Author:                Andy
Author URI:     http: //thebloghouse.com
Template:       twentyten
Version:        0.1.0
*/

@import url("../twentyten/style.css");

/* The following CSS is our example - you do not need to change your site's title link colour */

#site-title a {
    color: #009900;
}

Seems easy enough yeah?

Only thing you need to watch out for is if you want to say change the way Twenty Ten deals with certain CSS values you need to make sure you copy the full original CSS into your style CSS and change each value. By this we mean say you want to change the nice new Twenty Ten footer. You would find the following in the original style.css and copy this to your style.css file:

#colophon {
 border-top: 2pt solid #000;
 }

However simply removing the border-top: 2pt solid #000; part will NOT remove the border – you would need to have the following none value to override the original style.css:

#colophon {
 border-top: none;
 }

Obviously this is a very quick and simplistic look at the great work that everyone who has worked on and contributed to WordPress 3.0 and the Twenty Ten theme but if you are struggling with the basics hopefully the info above might help.

If not I would suggest reading the documentation again here, check out the 1 hour + video below by Steve Bruner and his WordPress 3.0 Customization Techniques or feel free to post a question in the comments below.

Share and Enjoy:
  • Facebook
  • Digg
  • Technorati
  • Google Bookmarks
  • StumbleUpon
  • del.icio.us
  • Sphinn

Discussion

Comments are disallowed for this post.

  1. Hi,

    please, can you advice me how to remove the page titles from my static pages ? I’m going insane…

    Kindly,

    Peter

    Posted by Peter | August 14, 2010, 8:06 pm
    • Thanks for your comment Peter.

      Can you please explain in a little more detail (maybe an example title) what aspect you aspect of the static content you don’t like?

      Posted by admin | September 14, 2010, 10:19 am
  2. Mine is also same. I made to page one “Home” and other “Blog”. Home is static. I want to rename “Home” to my local language. But I can’t make it. Plz help

    Posted by shoyeb | September 13, 2010, 9:44 am
    • To change the names of the pages that appear in the menu system go to Appearance > Menus and then on the right hand side click on the page name you want to change and enter your new menu name in the Navigation Label and finally click Save menu.

      Posted by admin | September 14, 2010, 10:19 am
  3. Thank You. It works.

    Posted by shoyeb | September 21, 2010, 8:37 pm
  4. Is there any way to remove the title link and that white space that is located above the header image?

    I know I can just delete the title from the Settings > General menu, however, that removes the title link from the top of my dashboard, I and I like the link there for quick access to my Home Page.

    The Title-Link above the header is unnecessary if the header displays the website name, and there is already a link at the bottom of the page in the footer.

    Thanks for you help.

    Posted by Mike | October 27, 2010, 6:19 pm
    • Hey Mike

      You could add the following quick CSS hack to the bottom of your existing style.css file:

      #header {
      padding: 0;
      }
      #site-title {
      display:none;
      }

      However I would try and create a child theme as I mentioned at the top so when Twenty Ten is updated your changes will stick.

      Hope that helps?

      Posted by admin | October 28, 2010, 1:34 pm
      • Someone created a modified 2010 theme called 2010 Weaver…it is fully customizable and a good alternative to the original 2010 theme. I’m glad I found it as it solves many of my problems, including the option to remove the title above the header.

        Thanks for your advice too, I’ll keep it in mind if I need it in the future.

        Posted by Mike | November 19, 2010, 3:37 pm
      • the little hack worked, thanks a bunch. that thing was driving me nuts.

        Posted by passerine design | June 7, 2011, 9:51 am
  5. [...] The Blog House: How to Customize Twenty Ten [...]

    Posted by Twenty Ten: Free Wordpress Theme (and Related Articles) | READMORE.CE.MS | November 3, 2010, 6:34 pm
  6. Hi – how do you change the settings so that posts appear in chronological order when you click the category or month links on the sidebar?

    Posted by Simon | November 8, 2010, 4:23 pm
    • Hi Simon.

      Can you post or email us a link to your site where this is an issue as it sounds like it is specific to your site?

      Posted by Andy | November 10, 2010, 8:02 am
  7. I get a list, but I’d like it to start with the first post, not the most recent one.

    Or at least know how to do it so I can have the choice.

    Thanks

    Simon

    Posted by Simon | November 10, 2010, 4:26 pm
  8. Hi I want to display the posts in a row where can I change this?

    Posted by ravi | November 19, 2010, 5:42 am
  9. Hey can you help me with removing the black border around my header? I did the following in my stylesheet:

    #branding img {
    border-top: none;
    border-bottom: none;
    }

    But the border is still on the site: http://kellyrouba.com

    Am I missing a step?

    Thanks!

    Posted by Hilary | November 24, 2010, 12:59 pm
    • Hi Hilary

      It looks like you have now resolved this but if not then please post more details of the issue.

      Posted by Andy | November 25, 2010, 9:06 pm
  10. Hi,
    Very helpful tips here. I’ve managed to remove the Title and extra white space from the top by editing the style.css file. Is there a way I can make my header an anchor back to the main page?

    Thanks,
    Matt

    Posted by Matt | December 1, 2010, 5:10 pm
    • Hi Matt

      You would need to add an image in the html code so there is something to click and then use CSS to position it over the cropped-AbstractRealmHeader_9401.jpg background you have.

      Alternatively you could do put a link in the header area and give it a class e.g. class=”YourSiteLogoClass” then you can use some CSS similar to the following:


      #header a.YourSiteLogoClass {
      display: block;
      width: 520px;
      height:100px;
      background: url(images/bg/You-logo.jpg) no-repeat;
      }

      Hope that helps.

      Posted by Andy | December 1, 2010, 8:51 pm
  11. Just a quick comment to say we have been told about a brilliant new child theme system based on the already great Twenty Ten theme called Twenty Ten Weaver. Some of the amazing feature are:

    * Easily Customize Your Theme via “checkbox” Interface – You can easily customize over 50 different elements of your theme simply by using the “checkbox” interface. Check checkboxes or select colors from a color picker – you don’t have to know the technical details to create a custom theme. (But if you do know CSS, you can make even more changes!)

    * Select from prebuilt themes, or design your own. Weaver includes over 15 sub-themes – either ready to use, or to serve as a starting point for you customizations.

    * Pick your own colors for titles, content, backgrounds, menu bar, and more Using the theme admin panel, you can easily change the colors for all the major elements of the theme – titles, body text, links, backgrounds, the menu bar, borders. You can use the color picker, or provide a hex value directly. The current color is displayed in the value box.

    * Pick your own fonts for titles and content. Select from a list of 20 popular web fonts for your titles and content.

    * And much more!

    If you don’t want to have to get your hands dirty with CSS etc then we strongly recommend downloading this theme:

    Twenty Ten Weaver

    Posted by Andy | December 2, 2010, 2:29 pm
  12. Hi! Thanks for the great tutorial!!

    I’d like to know if there’s a way to have the header directly on the background (with the white background only behind posts and sidebar)? That’s the only thing I haven’t been able to change, but I’d really like to have the header separated from the body.

    Posted by Wendy | December 14, 2010, 2:23 pm
    • Hi Wendy

      You would need to put something like this in your child theme CSS file:


      #wrapper {
      background: transparent;
      }
      #container {
      background: #ffffff;
      }

      The advice I gave to Lasse below would also be worth you reading :)

      Posted by Andy | December 14, 2010, 10:02 pm
      • Thank you! I had to use the same pattern for the header and the background, but it didn’t look perfect, now it’s working!

        I just downloaded the web-developer too, thanks a lot for the advice!

        Posted by Wendy | December 15, 2010, 2:41 pm
  13. Hey there
    I would like to have wider pictures using this theme.. I tried to write 1200 instead of 640 here;

    .one-column #content {
    margin: 0 auto;
    width: 640px;

    But it isn’t working. I’m really new in CSS, but my guess is that there’s something else blocking my way. I did enter 1200 in the “limit width to”-box underneath.

    Thanks!

    - Lasse

    Posted by Lasse Kofod | December 14, 2010, 6:01 pm
    • Hi Lasse.

      Thanks for the comments.

      I would suggest you download the following and install it on either Firefox or Chrome web browsers as with this you can start to learn about how the page is constructed and edit CSS live without actually altering things:

      http://chrispederick.com/work/web-developer/

      With regards to your specific issue I have just looked at your blog and everything looks ok so I presume this is now fixed?

      Posted by Andy | December 14, 2010, 9:51 pm
  14. As a novice, I’m loving the relative simplicity of Twenty Ten. But one thing in the header I would like the change: the right-hand tag line above the image. It is too small for my taste.

    How can I edit or modify that right-sided header tagline to a) change fonts or b) enlarge the font?

    Posted by thpyle | January 3, 2011, 1:37 am
    • Thanks for the comments.

      What I would advise it to create a child css file as detailed above and something like the following to it – changing the obvious parts to suit your needs:


      #site-description {
      font-size: 16px;
      font: Arial, Helvetica, sans-serif;
      }

      Posted by Andy | January 3, 2011, 6:35 pm
  15. Hi! just made a translation for the Twenty Ten theme, the traditional way, in case some of your readers may benefit of using it I’ll leave you the link:

    http://geektual.com/tema-twenty-ten-para-wordpress-traducido-al-espanol/

    Posted by TekxY | January 19, 2011, 8:39 am
  16. Andy/Admin (sorry, I’m confused to who is doing the most helping here.

    Basically, I was able to do small customs here and there, but I was really wondering if you can walk me through some changes. Mainly font size (body and posts) in the Twenty Ten theme; as well as some other things.

    If you can email me back, that would be great. =D

    Posted by Jeff B | January 26, 2011, 5:04 pm
    • Hi Jeff

      We can do the work for you and at the same time explain what we are doing if you are struggling?

      Please contact us and we will let you know our charges.

      Posted by Andy | January 27, 2011, 3:48 pm
  17. If I insert an image, the text will flow around it, but that is not always what I want. Can you tell me how I can insert an image without the text flowing around it? I just want some text, then a few images followed by more text, but that does not seem possible.

    Posted by Maurice | January 30, 2011, 7:23 pm
    • Hi Maurice

      When you add an image to a post or page there are the following alignment options with either the Center or None options hopefully giving you what you need:

      None Left Center Right

      Posted by Andy | January 31, 2011, 9:48 am
  18. Hi, I just ran across your site in looking for an answer to something I am trying to do.

    I am using 2010 with a child theme.

    I want to know how to remove the page labels from the content of my pages (not all of them) actually I want to put a name to my home page so that it shows up in my site map but if I do that then it will say “HOME” right on my home page.

    Thanks for any guidance

    Posted by Dan | February 26, 2011, 2:27 am
    • Hi Dan

      Apologies for not replying sooner – we missed your comment :(

      Did you resolve this issue? If not please post more details and we will be happy to help.

      Posted by Andy | March 4, 2011, 3:03 pm
  19. Hi,

    I need to change the Twenty Theme’s navigation menu to be horizontal-flying one. Can you advise me?

    Thanks

    Posted by du hoc malaysia | March 4, 2011, 2:43 pm
  20. Hi, Id like to customize the comments link font size, making the comment option more prominent to show people they can comment :)

    Posted by The Dame | March 8, 2011, 11:32 pm
    • Thanks for your question.
      To change the size of the text above the comments form you can add the following CSS rule:

      #commentform label{font-size:20px;}

      Obviously changing the font size value from 20px to whichever size you prefer.

      If you want to change the look further then you will need to details exactly what you want to someone (like us here) who can style the comments as you like.

      Posted by Andy | March 9, 2011, 7:54 am