Hi @rafaelzenato,
About the style.css and functions.php files, can I change the header as shown on the instructions and then just copy all the rest (code)?
Yes, you can copy the code directly from the instructions. You will need to edit parts of the code for the style.css file to make sure the information matches up to Sela, but the code for functions.php does not need to be edited.
Here’s an example of what the edited header information in your child theme’s style.css file may look like:
/*
Theme Name: Sela Child
Description: Sela Child Theme
Author: Your Name
Template: sela
Text Domain: sela-child
*/
The most important part here is the the Template name. It needs to exactly match your parent theme’s name. This “tells” the child theme where to inherit its styles and code from.
And about the other .php files, can I just copy then and paste into the new “sela-child” folder?
That’s right! For example, you can copy header.php from the parent theme to your child theme’s directory and edit it directly there. The child theme’s header.php file will be loaded first and will be used in place of the paren’t file.
Another question is about after the child theme’s creation: I should go in appearence>themes> and then change from Sela to “Sela-child”? Is anything else I’ll have to manually change?
You will need to activate the child theme from under Appearance > Themes, yes. There aren’t any other manual changes for you to make.
I’m sorry about all the questions.. I’m really not an expert and I’m afraid to lose the changes I’ve made.
Please don’t be sorry! We’re happy to help with any questions you have on getting setup. 🙂
I also very much recommend a talk from my colleague, Kathryn, where she does a very job of explaining the ins and outs of child themes, as well as the steps to get setup with one:
Let me know if you have other questions.