I’d like to have a dynamic custom code to manage advertisements, and I can’t figure out, how to add a custom code with Integromat. I know adding custom code in CMS is possible (Custom code in the CMS | Webflow University), however, when I add an HTML as plain text, I get this HTML as plain text on the corresponding page. If I convert this text with Markdown → HTML, Webflow cuts all HTML Any ideas on how I can achieve that? Thank you in advance.
You probably need to decode the encoded code (with custom code or a JS plugin) so it will run in the page. Webflow encodes code by default and since you can’t create embeds outside the designer this is the option. You did not share an example page so I could not check for you.
Custom code will only render as code when it is placed in an code embed, inside a RTF, through the designer or in and embed element placed on a page, or in the header or footer code areas.
Thank you for your help. What’s strange is that if I copy the code from the browser’s rendered page and past it in Codepen, everything works. However, the browser doesn’t show it. Can it be a security issue that prevents embeds?
I’m not sure I understood. Have I tried to manually place this code to an embed? Yes. I tried, it works. And it works if I put it as a custom code in a rich text block. Or it’s not your question?
It looks like the moment the page renders, the div with the ad is not ready yet. I added an Instagram embed, and it isn’t loaded at the moment of render too. Shouldn’t the function that changes the embed inner HTML be async?