Title: Adding function code gives error on front-end
Last modified: June 19, 2023

---

# Adding function code gives error on front-end

 *  Resolved [steffkap24](https://wordpress.org/support/users/steffkap24/)
 * (@steffkap24)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/adding-function-code-gives-error-on-front-end/)
 * Hello,
 * For the Tidio Chat plugin I want to add this code to my website: [https://share.cleanshot.com/0BRmbwvq](https://share.cleanshot.com/0BRmbwvq)
 * When I add it like this ([https://share.cleanshot.com/bJYjnTJq](https://share.cleanshot.com/bJYjnTJq)),
   some functionalities of my website are not working anymore. 
   What can I do in
   order to add the Tidio function code correctly to my website using HFCM?
 * Steff

Viewing 1 replies (of 1 total)

 *  Plugin Author [DraftPress Team](https://wordpress.org/support/users/draftpress/)
 * (@draftpress)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/adding-function-code-gives-error-on-front-end/#post-16851890)
 * [@steffkap24](https://wordpress.org/support/users/steffkap24/) 
   Use these following
   settings:
 * Snippet Type: HTML
   Site Display: Site WideLocation: Header
 * To implement the code you provided in the screenshot, simply wrap it with the`
   <script>Your Code</script>` tags.
 * By following these steps, your code should function properly.

Viewing 1 replies (of 1 total)

The topic ‘Adding function code gives error on front-end’ is closed to new replies.

 * ![](https://ps.w.org/header-footer-code-manager/assets/icon-256x256.png?rev=2681303)
 * [Header Footer Code Manager](https://wordpress.org/plugins/header-footer-code-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/header-footer-code-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/header-footer-code-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/header-footer-code-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/header-footer-code-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/header-footer-code-manager/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [DraftPress Team](https://wordpress.org/support/users/draftpress/)
 * Last activity: [2 years, 11 months ago](https://wordpress.org/support/topic/adding-function-code-gives-error-on-front-end/#post-16851890)
 * Status: resolved