I have recently created a child theme from its parent theme – Enfold. Then, I realize that the child theme does not have as many theme files as its parent theme does in the Editor section. Is there any way to get all those theme files from the Enfold theme to its own child theme? I want to install Google Tag Manager on my website, and it seems the best way to do it is using a child theme.
Thank you so much.
Regards,
Hey mikejohnsimports,
You don’t need to get all files from the parent theme, because wordpress by default will try to look for the file in the child theme, if it can’t find the file it will default to the parent theme, so you only need to copy files from the parent theme that you want to modify to override it. For example for google tag manager, you can just copy header.php from Enfold to the child theme and tweak it in the child theme and add the google tag manager script. Hope this helps :)
Best regards,
Nikko
Hi,
Please also see following links
– https://kriesi.at/documentation/enfold/using-a-child-theme/
– https://kriesi.at/documentation/enfold/child-theme-translations/
– https://kriesi.at/documentation/enfold/add-new-or-replace-advanced-layout-builder-elements-from-child-theme/
Best regards,
Yigit