How to Add Code to WordPress Header and Footer
In this entry, we’ll show you how to add code to the WordPress header or footer both by using a WordPress plugin or manually adding the code to your functions.php file. For most users, the plugin method is the recommended method. But intermediate-advanced WordPress users may prefer using the manual code method, instead.
How To Add Header and Footer Code in WordPress? (3 Simple Steps)
There are very few themes which offer this kind of features. But I would suggest that you should never use your theme control panel to add header and footer as the codes you have placed are important for your website and in future, if you change your theme then your data will be deleted with your theme and without those codes, your website may show some technical errors.