Creating Child Theme After Website Has Been Built

Hello,

I need to add custom code to my website’s head tag, and of course I know that should be added to the php file of a child theme.

My question is, can I setup a child theme after I’ve already built my site? Or, is there another way to go about adding code to my head? I’m just trying to add the FaceBook Pixel code to my site.

http://www.makemedia.us

Thank you.

Hi @Zaepian,

Thanks for reaching out.

You can always install a child theme anytime, you can add the code into your child theme’s function utilizing the wp_head hook.

Another way is using plugin but I don’t recommend that since your code is meant to be permanent and plugins could change and update and it may lead to more issues. And it’s much faster than having another plugin.

Thanks!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.