• Ok… My bad!

    I’ve gone at my blog like a bull in a china shop and edited loads of CSS on the original theme.

    Now I discover I need to use a Child Theme to make my adjustments.

    I know I’ve dropped a massive clanger, but is there any way I can get around this, without having to undo all the work I’ve already done?

    Any help would be greatly appreciated!

Viewing 2 replies - 1 through 2 (of 2 total)
  • No problem!

    1. Create a folder on your local machine with the name of your child theme. Actually you can call it anything you like, but let’s keep it clean
    2. Download all your altered files (in the 2011 theme on your server) to this folder
    3. On your local machine, add the child theme comments to the top of the style.css file you downloaded. If you didn’t download the style.css file because you hadn’t altered (unlikely), create one in your local folder and add the child them comments. Post again if you don’ know what I mean by the child theme comments. The style.css file is the only compulsory child theme file
    4. Still in the style.css file, add an @import reference pointing to the 2011 style.css file. Again, just ask for clarification if you don’t know what I’m on about here
    5. Upload the entire folder and contents to your WP themes folder on your server
    6. Go to the WP Dashboard –> Themes. Your child theme should be showing up there now
    7. Activate your child theme

    Simples.

    For details on child themes see the Codex Child Themes page.

    Cheers

    PAE

    Oops! Forgot to say that once you’ve downloaded the altered 2011 files to your local machine, you need to undo your changes in 2011. The easiest way to do that is probably to:

    • [Download and] activate a different theme (e.g. 2010)
    • Delete the 2011 theme folder
    • Reinstall 2011 from scratch

    Apologies

    PAE

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Child Theme Twenty Eleven’ is closed to new replies.