Few years ago I started learning Wordpress and I created a page. I didn't know much about it then, therefore I didn't create child theme before I started making changes in my theme files. I know, I should think about it before ;) Now I want to make a little update on that page and I am looking how could I create a child theme to make modifications, and update the original theme...
I was thinking.
Can I create a folder via FTP transfer on my server.
I would name it THEME-CHILD.
In this folder I would copy the modified theme files. (the files that are currently in THEME folder, modified). all of them? or just the ones I am sure I changed, page.php, header.php, style.css...
I would change info in the style.css head, so it would call the parent theme css..
Then I would copy the original theme (I still have the .zip file of that theme in my archive, so its same version) in the existing folder THEME.
Then I would activate the child theme in my dashboard and hoped it works. Would it work? Or will I delete all my modifications?
Thank you so much for help!
style.css
file that contains comments letting WP know it is a theme, but you don't have to have any actual CSS if you don't need it. And then, only copy the files that have modifications. Don't copy the rest. Otherwise when the parent theme updates your child theme will be overriding all the updates.