"Custom code is not validated" but WF will change it anyway

Hi @daxliniere

Thanks for sharing your feedback here.

To clarify this is expected behavior and not a bug. The reason this code was changed is because you were using PHP as you mentioned in your other thread. Custom PHP isn’t supported by Webflow in the custom code fields or embeds. You can use HTML, CSS, or Javascript, but any server side language won’t work here. This may change in the future, but this is expected behavior currently.

I’ve let the team know about this so we can update our education material and maybe add a note in our UI to avoid issues like this in the future.

If you 100% need this integration, you may consider exporting the project and hosting with a third party provider so you can include this custom PHP.

Hope this makes sense and let me know if you have other questions.