Tagged: ismael
Hi,
I need to add this tracking code(not Google) to my Enfold site. How do I add this code to the footer?
Unfortunately I haven’t set it up to use a child theme. Is there a way I can add it without using a child theme?
Your help is much appreciated.
Sara
Hey sv3designs,
Thanks for using our theme :)
You can add any custom script code using the follow code in the functions.php of the child theme.
function add_custom_script(){ ?>Just change the add_custom_script by the name that you want.
Best regards,
John Torvik
Hi,
Thank you for the reply.
What if I don’t want to change to a child theme? I already have everything working without a child theme and don’t want to move to a child theme.
Can I modify the main theme’s functions.php? Is there any other alternate way to add it without using a child theme?
Thanks
Hi!
Yes, you can modify the parent theme’s functions.php file but it’s going to be overwritten once you update the theme. Please move to a child theme.
// http://kriesi.at/documentation/enfold/using-a-child-theme/
Or use the following plugins:
// https://wordpress.org/plugins/my-custom-functions/
// https://emoji.wordpress.org/plugins/my-custom-functions/
Cheers!
Ismael