• Resolved Yka

    (@yka)


    Hi, I can’t edit this for at all as HTML mode. When I turn this to HTML, it doesn’t matter what I do, one space key for example in attribute gives a typical block error about “unexpected content” and I just can click Try to recover this block. It returns me to a previous situation.

    I wan’t to modify:
    – translate Phone in Finnish
    – modify e-mail recipient
    – modify message and title of reply e-mail
    – etc.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jordy Meow

    (@tigroumeow)

    Hi,

    It’s a Gutenberg Block, so like any other Gutenberg Block, you can’t modify its HTML, otherwise you will break the block ?? That’s how it works.

    Also, in the case of Contact From Block, it’s using a shortcode, so there is no really HTML.

    You can click on the block, and modify some of it in the sidebar, through its options.

    If you want to go further, you can also have a look at the tutorial:
    https://meowapps.com/contact-form-block/tutorial/

    The plugin is supposed to be simple and powerful, but for advanced customization, coding will be required.

    I hope it helps ??

    Thread Starter Yka

    (@yka)

    Thanks, At first I did check Tutorial before making this post ??

    The problem was, where to do this coding? I thought I could to to HTML edition mode and add/modify code. But it was impossible. So please help – where I can do this coding?

    Plugin Author Jordy Meow

    (@tigroumeow)

    If you don’t know, I am afraid it’s going to be wayyyyy to complicated for you. You really need some coding skills to be able to do that.

    It might be simpler for you to use a contact form plugin that has the features you are looking for ??

    Thread Starter Yka

    (@yka)

    Hi, to clarify. on next trial I managed to push a correct selection to get this form modified. Here you can see the example of my latest trial:

    [contact-form-block name_label="NimI" 
    		email_label="Maili"
    phone_label="Puhelin" 
    		message_label="Viesti" 
    		header="true" 
    		header_image_id="null" 
    		header_image_size="50" 
    		header_image_align="left" 
    		header_title="Tuuppaa viesti" 
    		header_text="Pukkaa viesti, niin vastaamme sinulle ensitilassa " 
    		button_text="Matkaan" 
    		button_color="#3d84f6" 
    		button_text_color="white" 
    		align="undefined" 
    		theme="meowapps" 
    		message_rows="5"]
    add_filter( 'mcfb_email_to', function ( $to, $form ) {
      $to = $form['donald.duck@ankkalinna.fi'];
      return $to;
    }, 10, 2 );[/contact-form-block]

    In the end of this code you can see my trial to add a filter. email is not a real one, but I tried it with some real emails and message comes in all trials to my admin-email, defined in this WordPress site.

    Probably I put “add_filter”-script to a wrong place? But please give an example coding, where to insert it? Or does it need some missing marks before/after it?

    If i put it after or before outside [ .. ], code appears on site before/after form
    If i put it upper, but inside [ .. ], code breaks form and makes layout just “default”(?) instead of selected “meowapps”, but email still doesn’t change.

    So please advise some exmple, where “add_filter” has done correctly and in a correct place.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Impossible to edit form as HTML’ is closed to new replies.