WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Child Theme help before upgrade to 3.05 (8 posts)

  1. up2early
    Member
    Posted 3 years ago #

    Like a typical newbie I created two wordpress sites, Cornell's Restaurant and Vatrano Park using the Twenty Ten theme, modifying the style.css, footer.php and sidebar.php of the theme. I know now, hindsight is 20/20, that if I update wordpress to 3.05 it will overwrite my modified files. I have read the WordPress tutorialbut am unclear on a few things.
    I need to create the Child theme directory, add the information header to the style.css, but do I then copy my current style.css, adding the information header, footer.php and sidebar.php to the Child theme folder?
    Then I activate the theme through the dashboard?
    As always thank you all for the help provided in these forums. Hopefully some day I will understand this enough to help idiots like me that don't research before they jump!

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    do I then copy my current style.css

    Ideally, no. You import Twenty Ten's style.css into the child's stylesheet and then only add your changes. You also need copies of any modified template files.

    Then I activate the theme through the dashboard?

    Correct.

  3. up2early
    Member
    Posted 3 years ago #

    I guess my problem is I did not document the changes I made, I sort of made changes to style.css as I went along to get it looking and working right. I know, bad move obviously. I had no idea updates would cause issues, now I know.

  4. esmi
    Forum Moderator
    Posted 3 years ago #

    You try using a file compare tool to try and identify what changes you made & where.

  5. up2early
    Member
    Posted 3 years ago #

    Thanks! Great idea.

  6. up2early
    Member
    Posted 3 years ago #

    Thanks esmi, all worked perfectly!

  7. esmi
    Forum Moderator
    Posted 3 years ago #

    Excellent ! :-)

  8. catwingz
    Member
    Posted 2 years ago #

    Can you recommend a good file compare tool?

    I am also on the track of righting newbie wrongs, and I know my changes were scattered throughout the php…I know I did some commenting, but there are multiple files to scrutinize — lessons learned!

Topic Closed

This topic has been closed to new replies.

About this Topic