Friday, November 9, 2012

Customizing WordPress Theme Twenty Eleven Automatic Width

First I don't know any about CSS.

Do not edit the Twenty Eleven theme. It is the default WordPress theme and having access to an unedited version of the theme is vital when dealing with a range of site issues.

For this reason, it is recommended that you consider creating a child theme for your customisations.

wget http://wordpress.org/extend/themes/download/twentyeleven.1.4.zip
unzip twentyeleven.1.4.zip
mv twentyeleven twentyeleven_child
cd twentyeleven_child/


Modify sytle.css

Change the Theme Name to a different name like : Twenty Eleven Child


/*
Theme Name: Twenty Eleven Child
Theme URI: http://wordpress.org/extend/themes/twentyeleven
Author: the WordPress team
Author URI: http://wordpress.org/


mv twentyeleven_child /www/wordpress/wp-content


Once your child theme is active, we should be able to help with the customisation.

To make your WordPress width fits any resolution Automatic, just common out the [max-width:] line.

/* =Structure
----------------------------------------------- */

body {
padding: 0 2em;
}
#page {
margin: 2em auto;
/* max-width: 1000px;*/
}


Then active the child Theme, and you are done!

9 comments:

  1. When I originally commented I clicked the "Notify me when new comments are added" checkbox and now each time a comment is added I get three e-mails with the same comment. Is there any way you can remove me from that service? Appreciate it!

    ReplyDelete
  2. It is the best time to make some plans for the future and it's time to be happy. I've read this post and if I could I desire to suggest you some interesting things or suggestions. Maybe you can write next articles referring to this article. I desire to read more things about it!

    ReplyDelete
  3. thank you for posting such a useful website. your weblog happens to be not just informative but also very stimulating too. lista de emails lista de emails lista de emails lista de emails lista de emails

    ReplyDelete
  4. It¡¦s actually a great and helpful piece of info. I¡¦m satisfied that you shared this useful info with us. Please keep us up to date like this. Thank you for sharing.

    ReplyDelete
  5. Spot on with this write-up, I really think this web
    site needs a great deal more attention. I'll probably be back again to see
    more, thanks for the info!

    ReplyDelete
  6. Have you ever thought about adding a little bit more than just your articles?
    I mean, what you say is fundamental and everything.
    Nevertheless think of if you added some great photos or videos to give your posts more, "pop"!
    Your content is excellent but with images and video clips, this site could undeniably be one of the best in its field.
    Awesome blog!

    ReplyDelete
  7. Thanks for the suggestion.
    But images and video cost lot of time.
    I only did one youtube video, which cost me 4 hours to make.
    An article only take 10 minutes.

    ReplyDelete