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

    (@takayukister)

    Thread Starter MrAlexander.Ca

    (@mralexanderca)

    Thanks for the reply, Arigato, looks like we are misunderstanding each other.

    The current structure comes out like this:
    
    <code><span class=&quot;wpcf7-form-control-wrap your-name&quot;><input type=&quot;text&quot; name=&quot;your-name&quot; value=&quot;&quot; size=&quot;40&quot; class=&quot;wpcf7-form-control wpcf7-text wpcf7-validates-as-required&quot; aria-required=&quot;true&quot; aria-invalid=&quot;false&quot;></span></code>
    
    We would like to have it like this:

    <div class=”wpcf7-form-control-wrap your-name”>
    <div class=”inner”>
    <input type=”text” name=”your-name” value=”” size=”40″ class=”wpcf7-form-control wpcf7-text wpcf7-validates-as-required” aria-required=”true” aria-invalid=”false”>
    </div></div>`

    Essentially modifying the surrounding html and how the input is output, without having to rely on regex or anything like it.

    Awaiting your reply.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Customize components / input html structure’ is closed to new replies.