Adding Custom PHP Without Changing Your Child Theme
Sometimes, you are using a child theme and you don’t want to edit its files by fear of losing your customizations in a future update. Our recommendation to easily add snippets to your WordPress website is using the Code Snippets plugin.
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed