up2early
Member
Posted 1 year 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!
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.
up2early
Member
Posted 1 year 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.
You try using a file compare tool to try and identify what changes you made & where.
up2early
Member
Posted 1 year ago #
up2early
Member
Posted 1 year ago #
Thanks esmi, all worked perfectly!
catwingz
Member
Posted 8 months 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!