Title: How to add plugin code to header html using function
Last modified: August 24, 2016

---

# How to add plugin code to header html using function

 *  [jenfetch](https://wordpress.org/support/users/fetchbranding/)
 * (@fetchbranding)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/how-to-add-plugin-code-to-header-html-using-function-1/)
 * How can I add this code to my header html using a function? I need to add this
   to a childtheme.
 * <!–Start of Zopim Live Chat Script–>
    <script type=”text/javascript”> window.
   $zopim||(function(d,s){var z=$zopim=function(c){z._.push(c)},$=z.s= d.createElement(
   s),e=d.getElementsByTagName(s)[0];z.set=function(o){z.set. _.push(o)};z._=[];
   z.set._=[];$.async=!0;$.setAttribute(“charset”,”utf-8″); $.src=”//v2.zopim.com/?
   2viiMwgRkUnV0tYLYPgg6qcXqEgN0Gtk”;z.t=+new Date;$. type=”text/javascript”;e.parentNode.
   insertBefore($,e)})(document,”script”); </script> <!–End of Zopim Live Chat Script–
   >
 * [https://wordpress.org/plugins/zopim-live-chat/](https://wordpress.org/plugins/zopim-live-chat/)

Viewing 1 replies (of 1 total)

 *  [bencxr](https://wordpress.org/support/users/bencxr/)
 * (@bencxr)
 * [11 years ago](https://wordpress.org/support/topic/how-to-add-plugin-code-to-header-html-using-function-1/#post-5997662)
 * Hi jenfetch,
 * Sorry for the late response,
    i do not understand your use case here, are you
   trying to embed our Live Chat Widget to your WordPress Site, in that case you
   can go ahead and install the plugin and link your account by logining in to your
   account from the plugin.
 * Regards,
    Team Zopim

Viewing 1 replies (of 1 total)

The topic ‘How to add plugin code to header html using function’ is closed to new
replies.

 * ![](https://ps.w.org/zopim-live-chat/assets/icon.svg?rev=1522846)
 * [Zendesk Chat](https://wordpress.org/plugins/zopim-live-chat/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/zopim-live-chat/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/zopim-live-chat/)
 * [Active Topics](https://wordpress.org/support/plugin/zopim-live-chat/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/zopim-live-chat/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/zopim-live-chat/reviews/)

## Tags

 * [childtheme](https://wordpress.org/support/topic-tag/childtheme/)
 * [function](https://wordpress.org/support/topic-tag/function/)
 * [header](https://wordpress.org/support/topic-tag/header/)

 * 1 reply
 * 2 participants
 * Last reply from: [bencxr](https://wordpress.org/support/users/bencxr/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/how-to-add-plugin-code-to-header-html-using-function-1/#post-5997662)
 * Status: not resolved