• Hi,
    I have placed a contact form in a modal block using the shortcode. The modal is opened using a button. Unfortunately, the shortcode is not executed, but appears as text. I can execute other shortcodes. Even with the Contact Form 7 block instead of the shortcode block nothing changes.

    Theme TT4 latest
    WP latest
    CF7 latest

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Where can we see the website in question?

    Thread Starter Manja Neumann

    (@tippl)

    The site is still under construction. I could give you credentials.

    The html output is:

    <div role="dialog" aria-modal="true" aria-labelledby="bodModalAriaTitle2" aria-describedby="bodModalAriaContent2"

    ??? class="bod-block-popup-wrap undefined active" style="display: block;">

    ??? <div style="background-color:rgba(255,255,255,0);border-radius:0px " class="bod-block-popup size-f fade"

    ??????? data-transition="fade">

    ??????? <div id="bodModalAriaTitle2" style="background-color:#ffffff;text-align:left" class="bod-modal-title"><button

    ??????????????? type="button" style="font-size:1rem " class="bod-block-title-closer" aria-label="Close"><span

    ??????????????????? aria-hidden="true">×</span></button></div>

    ??????? <div id="bodModalAriaContent2" style="padding:3rem " class="bod-modal-content">

    ??????????? <div class="wp-block-contact-form-7-contact-form-selector">[contact-form-7 id="e279927" title="Kontakt"]

    ??????????? </div>

    ??????? </div>

    ??? </div>

    </div>
    Thread Starter Manja Neumann

    (@tippl)

    Hi,

    I have to correct myself. It is true that shortcodes are generally not executed in the modal. But even if I use the Contact Form 7 block, the form is not rendered. How does the block work? Does it simply convert to a shortcode? I have tested other form plugins, with them the input via shortcode does not work as well, but the provided block does.

    Thanks
    Manja

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.