Archived topic
Form fields are partially shot.
4 replies · Started by Samuel on March 15, 2022
I know: GP has no form fields. But I noticed something and I would like to address it here: Form fields are partially shot up. Especially if you use https://jetformbuilder.com/. I have not tested other form builders.
My Setup: https://www.screencast.com/t/lSjCIxBan
My goal is to put the fields in different columns. What i get is this: https://www.screencast.com/t/iEcPeuc0kmZ
The fields do not spread 100% over the entire width. When I use the default block of wordpress, it looks fine. Nothing gets shot up. See the two fields below the form: https://www.screencast.com/t/kHxcHY0oV
The second thing I noticed: I use the headline block to make the note a little nicer. In the editor it shows up, but in the frontend it still looks like "standard": https://www.screencast.com/t/Kte2KN5x1zo
I have the feeling that the styles do not "grab".
Hi there,
this is really a question for GenerateBlocks, however, if that is a Custom Post Type being edited there, then see this article from the GenerateBlocks documentation:
https://docs.generateblocks.com/article/adding-content-sources-for-dynamic-css-generation/
Ok, sorry for the wrong channel :)
No problems - That article should resolve the issue :)
Now I have to ask again. If I want to have GB also for JetFormBuilder, then I would have to change the following parameters:
if ( ! $block_element || 'your_post_type' !== $block_element->post_type ) {
return $content;
to
if ( ! $block_element || 'jet-form-builder' !== $block_element->post_type ) {
return $content;
What would I need to do to make all forms adopt the GB Styles? As independent of the ids...
$post_id = 123; // A post ID to check the content of. Can be dynamically set.