Title: Error while Inserting Code
Last modified: September 29, 2022

---

# Error while Inserting Code

 *  Resolved [helpmelearnwp](https://wordpress.org/support/users/helpmelearnwp/)
 * (@helpmelearnwp)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/error-while-inserting-code/)
 * I tried inserting a script for a chatbot to be embedded on my website, but I’m
   getting [errors](https://snipboard.io/XlwaiU.jpg) using Global Header & Footer.
 * The errors are as follows:
    [errors] Expected BRACE at line 3, col 3. [errors]
   Expected BRACE at line 4, col 3. [errors] Expected BRACE at line 5, col 3.
 * Coding is not my strong suit, but I am trying to learn. Why is this happening?
   As far as I know, Dialogflow uses custom CSS to change the look of their chatbots,
   and that is the format that they’re meant to be in.
 * I’ve also tried adding the very same code using a “Universal Snippet” through
   the plugin, and it works fine.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Mircea Sandu](https://wordpress.org/support/users/gripgrip/)
 * (@gripgrip)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/error-while-inserting-code/#post-16063956)
 * Hi [@helpmelearnwp](https://wordpress.org/support/users/helpmelearnwp/),
 * Thank you for the screenshot, from what I can see, the code you are using there
   is overriding some CSS variables and the code editor syntax validator doesn’t
   support variables yet. I made a note to look into adding better support in a 
   future release.
 * Regardless of that, your code should work as intended as far as I can see.

Viewing 1 replies (of 1 total)

The topic ‘Error while Inserting Code’ is closed to new replies.

 * ![](https://ps.w.org/insert-headers-and-footers/assets/icon-256x256.png?rev=2758516)
 * [WPCode - Insert Headers and Footers + Custom Code Snippets - WordPress Code Manager](https://wordpress.org/plugins/insert-headers-and-footers/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-headers-and-footers/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-headers-and-footers/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-headers-and-footers/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-headers-and-footers/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-headers-and-footers/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Mircea Sandu](https://wordpress.org/support/users/gripgrip/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/error-while-inserting-code/#post-16063956)
 * Status: resolved