[resolved] Overwritten TwentyEleven--Child Theme? (4 posts)

  1. rofllikeomg
    Posted 3 years ago #

    I began hacking at the styles.css file inside of the 2011 theme. I also may have altered several of the other files along with it. I believe this was very foolish, from what I understand now, when WordPress Updates I will lose all of my information.

    Is this correct?

    Would it help if I have made it a Child Theme?

    Is there any way to convert what I have now into another theme?

  2. bythegram
    Posted 3 years ago #

    Yes you want to make a Child Theme for sure. Luckily it is pretty easy if all you changed was the css.

    Basically create a folder on your desktop (YourThemeName). Inside of it create a file called style.css then using a text editor or whatever web editor you may use (Dreamweaver, etc) put this at the top of style.css

    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
    @import url("../twentyeleven/style.css");

    You can edit most of those details but you want to keep the Template and @import url the same.

    Next up add any of the changes you made to the 2011 css (you only need to add the changes since the @import function will bring it the rest). Anything you do in this file will overwrite the Parent's style.

    Now zip the folder and upload it via the Admin-Appearance-Themes

    I hope that made sense, here is the codex page if you need more help.

  3. rofllikeomg
    Posted 3 years ago #

    Thanks for the prompt reply.

    I found a website:


    that explained my options pretty well. What I did was download the theme via my ftp browser, saved it as another name, renamed the style.css file, zipped it, and reinstalled it as another theme.

    This seemed to be fairly straightforward. The site I am building will not (most likely) need updates in the future other than simple text updates. It is to be an archival site of sorts.

    Thanks again for the reply, and let me know if this changes anything.

  4. bythegram
    Posted 3 years ago #

    Good stuff! Happy coding!

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.