I want Help With Blocs App - Struggling with Custom Code Integration

Hey everyone,

I am new to Blocs & I am loving the platform so far. I have facing issue. Also I am trying to integrate some custom code (HTML, CSS, JavaScript) into my project but I am not entirely sure how to go about it. Also I have tried a few things such as adding custom code in the settings but I am not sure if it’s being applied correctly or if I am missing something.

Is there a step-by-step guide or best practice for integrating custom code into Blocs? Also I am trying to add a small script for a form validation & some custom styling that is not available in the default Blocs options. Also; I have been researching about new technologies and came across the term What is Generative AI. If anyone has tips on how such technologies might play into web development or Blocs projects, that would be super helpful.
Also i have check this JavaScript Integration in Blocs 3? still need help. If anyone have any suggestion please share with me.

If anyone have any advice please share with me.

Thank you…:slight_smile:

Hello,
There are several ways of inserting code, either you put it throughout your project or you put it on a specific page.

You can put the code on the header, which is in the parameters of your project. You can define whether the code you add will be on the header or the footer, depending on your needs.

If it’s on a specific page, the code is put in the parameters of your selected page and, likewise, you can define where you put your code, either header or footer.

I don’t know if I was clear enough in my explanations

You can add the ‘code widget’ bric. Then use the settings on the right hand site to access the code window. From there you can enter code and choose header, footer, CSS etc

1 Like