Title: Forbidden code inside widget builder
Last modified: February 11, 2022

---

# Forbidden code inside widget builder

 *  Resolved [lianix](https://wordpress.org/support/users/lianix/)
 * (@lianix)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/forbidden-code-inside-widget-builder/)
 * Good evening, congratulations on your plugin.
 * I tried to write to you through your site but the form returns an error on submit
 * We are experimenting with the widget builder.
    We have seen that we can insert
   php code in addition to html, css and javascript. By necessity, some php functions
   we are testing need to generate additional styles or javascript inside the php
   function itself. We noticed that adding tags like <style> </style>, <script> 
   </script>, <link rel = “”>, an error occurs when saving. Could this mistake be
   avoided? It would be very important for us to allow us to create a custom widget.
 * Thanks so much,
    kind regards. Maurizio

Viewing 10 replies - 1 through 10 (of 10 total)

 *  [benjirahmed](https://wordpress.org/support/users/benjirahmed/)
 * (@benjirahmed)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/forbidden-code-inside-widget-builder/#post-15359585)
 * Hello [@lianix](https://wordpress.org/support/users/lianix/) ,
 * Thanks for your interest in our plugin. Can you please explain the requirement
   a bit more? It would be better if you could share a screencast/video about it.
   We will try on our end as well to reproduce it.
 * Waiting for your valuable response and we are always here to help you.
 * Regards,
    Benjir
 *  Thread Starter [lianix](https://wordpress.org/support/users/lianix/)
 * (@lianix)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/forbidden-code-inside-widget-builder/#post-15362358)
 * Example: [SCREENSHOT LINK](https://ibb.co/PGKKst8)
 * Hello.
    What I mean is that the editor does not save the changes if I code certain
   html tags, in the example it is the <style> </style> tag, but it also happens
   with <script> </script>, <link rel = “”>, <iframe> and other tags. Is it possible
   to unlock this thing? Because as you can see in the example we need to call certain
   styles directly in the php functions, without using the css tab provided by your
   plugin.
 * Regards.
    Maurizio
 *  [benjirahmed](https://wordpress.org/support/users/benjirahmed/)
 * (@benjirahmed)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/forbidden-code-inside-widget-builder/#post-15369860)
 * Hi [@lianix](https://wordpress.org/support/users/lianix/) ,
 * Thanks for the clarification and screenshot. I am checking it in my development
   environment and soon I will get back to you with an update. Till then please 
   stay with us.
 * Regards,
    Benjir
 *  Thread Starter [lianix](https://wordpress.org/support/users/lianix/)
 * (@lianix)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/forbidden-code-inside-widget-builder/#post-15372069)
 * Hi, thank you. I will wait.
 * Regards.
    Maurizio
 *  Thread Starter [lianix](https://wordpress.org/support/users/lianix/)
 * (@lianix)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/forbidden-code-inside-widget-builder/#post-15379585)
 * Hi. There are news about what we need?
    Thank you very much.
 *  [benjirahmed](https://wordpress.org/support/users/benjirahmed/)
 * (@benjirahmed)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/forbidden-code-inside-widget-builder/#post-15383363)
 * Hi [@lianix](https://wordpress.org/support/users/lianix/) ,
 * Our development team is still checking the issue and we will get back to you 
   with an update today. Till then please stay with us.
 * Regards,
    Benjir
 *  Thread Starter [lianix](https://wordpress.org/support/users/lianix/)
 * (@lianix)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/forbidden-code-inside-widget-builder/#post-15416591)
 * Hi, any news??
    Thank you.
 *  [benjirahmed](https://wordpress.org/support/users/benjirahmed/)
 * (@benjirahmed)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/forbidden-code-inside-widget-builder/#post-15418564)
 * Hello [@lianix](https://wordpress.org/support/users/lianix/) ,
 * I am extremely sorry for the delay response. Please allow me some more time till
   tomorrow. I will give you a final update then. Thanks for your patience.
 * Regards,
    Benjir
 *  [benjirahmed](https://wordpress.org/support/users/benjirahmed/)
 * (@benjirahmed)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/forbidden-code-inside-widget-builder/#post-15422425)
 * Hey [@lianix](https://wordpress.org/support/users/lianix/) ,
 * Please check this [screencast](https://d.pr/i/bA2RGy) first. Here you can see
   I have added interenal CSS inside the PHP block and it work fine on widget built
   with Widget builder.
 * So, I am assuming there is another issue that is restricting you to cause the
   error shown on the screenshot you have given earlier. Try to just put a simple
   CSS code like I have and hopefully you will find the issue you have in your custom
   code.
 * Regards,
    Benjir
 *  Thread Starter [lianix](https://wordpress.org/support/users/lianix/)
 * (@lianix)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/forbidden-code-inside-widget-builder/#post-15422628)
 * I tried on another clean installation of wordpress, in fact you are right, the
   problem does not arise.
    Surely there is a plugin that conflicts at this point.
   Thank you, I have other questions but on another topic, I will open a tick on
   purpose.
 * Thank you so much for the help.
 * Regards.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Forbidden code inside widget builder’ is closed to new replies.

 * ![](https://ps.w.org/elementskit-lite/assets/icon-256x256.gif?rev=2518175)
 * [ElementsKit Elementor Addons – Advanced Widgets & Templates Addons for Elementor](https://wordpress.org/plugins/elementskit-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/elementskit-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/elementskit-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/elementskit-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/elementskit-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/elementskit-lite/reviews/)

 * 10 replies
 * 2 participants
 * Last reply from: [lianix](https://wordpress.org/support/users/lianix/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/forbidden-code-inside-widget-builder/#post-15422628)
 * Status: resolved