Home › Forums › WoodMart support forum › child theme
child theme
- This topic has 7 replies, 2 voices, and was last updated 2 years, 4 months ago by Aizaz Imtiaz Awan.
-
AuthorPosts
-
September 8, 2022 at 12:51 am #402170
cesaicumparParticipantHello! I noticed that in Appearance -> Theme File Editor, if the child theme is selected, there are far less files than if the original theme is selected.
Is this correct? If I wanted to change something in the theme and used the files from the original theme, will it be shown if I use the child theme?
September 8, 2022 at 11:30 am #402255
Aizaz Imtiaz AwanKeymasterHello,
The child theme consists of less files as compared to the parent theme. If you want to edit any file then you need to copy that file from the parent theme and modify it in the child theme.
Best Regards
September 8, 2022 at 8:17 pm #402369
cesaicumparParticipantHow do I copy a file to the child theme?
September 9, 2022 at 9:59 am #402462
Aizaz Imtiaz AwanKeymasterHello,
Please read the following articles for help:
https://www.wpbeginner.com/beginners-guide/wordpress-child-theme-pros-cons/
https://www.wpbeginner.com/wp-themes/how-to-create-a-wordpress-child-theme-video/Best Regards
September 12, 2022 at 3:03 pm #402945
cesaicumparParticipantI have read it but I’m not sure how that answers my question. I don’t see other files other than functions.php mentioned, which I already had in the child theme. How do I edit the header.php file, which is available in the original theme and not available in the child theme? How do I copy it to the child theme?
September 13, 2022 at 10:17 am #403159
Aizaz Imtiaz AwanKeymasterHello,
By default the child theme doesn’t have the files of the main theme. You can copy the files you need to the child theme to modify them as you require.
To copy the files you can use the file manager plugin.
https://wordpress.org/plugins/wp-file-manager/Best Regards
September 13, 2022 at 12:30 pm #403217
cesaicumparParticipantI understand. What happens if I update the file (add some code for example) in the original theme, without uploading it to the child theme? I see that the code applies to the website, even if I use the child theme and I don’t upload the file in the child theme.
September 13, 2022 at 3:23 pm #403742
Aizaz Imtiaz AwanKeymasterHello,
If you apply the code to the main theme then it will be lost after you update the theme.
That’s why the child theme is Recommended.
Best Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register