Code Snippets plugin
The Code Snippets plugin is an easy, clean and simple way to add code snippets to your site. It removes the need to add custom snippets to your theme’s functions.php file.
It also allows you to update the files of a (child) theme without losing any customizations, because they are stored in the database instead of in your theme files.