There may be occasions and the option is to edit the underlying code of the theme you are using.
Thankfully, there is handy plugin available which allows you to insert code into the header and footer of your website, while also giving you easy way to deactivate that code in the future..
By being inserted into the header and footer sections, This could include analytics tracking code, custom PHP or JavaScript, and anything else that can enhance your website..
using this plugin gives you safe way to do so..
it can be installed on your site directly from WordPress plugin directory..
From the Add Plugins screen, 'Header and Footer in the search field and then install the first item listed in the results...
Once the plugin has been installed and activated, it can be accessed from the Header and Footer item under Settings on the admin sidebar..
This plugin gives you interface for adding code to the header and footer sections of your WordPress website.
without editing that important file, then Code Snippets plugin is another good option..
Joe is writer that has knowledge of all things WordPress.or you would like to hire him as writer for your blog, check out his website... Comments...
Read more