Okay
  Public Ticket #3544366
Contact Form 7 – button margin
Closed

Comments

  •  1
    Zac Trout started the conversation

    I'm testing out two different contact form layouts. 

    On the first, I can't get a space between the email input field and the submit button. 

    On the second, the button doesn't extend to the full width. I'd also like this one to stack in one column on mobile, but don't know how to do that within the CF7 builder. 

     I have tried editing the CSS, but I can't find where the padding is coming from.

    Attached files:  Screenshot 2023-12-15 at 3.54.59 PM.png

  •  2,958
    Andrew replied

    Hey Zac,

    Thank you for reaching out to us.

    You need to remove the submit button from the "nectar-wpcf7-inline-form" and add it to a different row. This will make the button move the the next row and the submit button will be full width.

    1276497892.png

    Try that and let us know how it goes. Let us know if you need further assistance with this.

    Kind regards,

  •  1
    Zac Trout replied

    Thanks Andrew,

    I just wanted to let you know that the solution you suggested is not what I'm after. I've made a mockup showing the 2 different options I'd be happy with, with Option 1 being what I described in my previous message.

    In either scenario, I would like the fields to stack into one column on mobile, as shown.

    Attached files:  Screenshot 2023-12-19 at 1.43.52 PM.png
      Screenshot 2023-12-19 at 1.47.17 PM.png

  •  1,875
    Judith replied

    Hi Zac,

    For assistance with form data and columns, I recommend referring to the following articles:

    1. [Contact Form Columns](https://themenectar.com/docs/salient/contact-form-columns/)
    2. [Importing Contact Form Data](https://themenectar.com/docs/salient/importing-contact-form-data/)

    These resources should provide valuable information to help address your queries.

    If you have any further questions or need additional assistance, feel free to reach out.

    Thanks.


  •  1
    Zac Trout replied

    Judith, that takes us back to the original problem. If I use the exact code that's shown on the "Contact Form Columns" page, it looks like the screenshot below.

    7409890570.png

    However, if I change the code to this:

    <div class="nectar-wpcf7-inline-form"> 
      <div class="nectar-wpcf7-inline-field"> 
         [text* first-name placeholder "First Name"]
      </div>
      <div class="nectar-wpcf7-inline-field"> 
         [text* last-name placeholder "Last Name"]
      </div>
    </div> <div class="nectar-wpcf7-inline-form"> 
      <div class="nectar-wpcf7-inline-field"> 
         [email* your-email placeholder "Email Address"]
      </div>
    </div>   <div class="nectar-wpcf7-inline-field fullwidth"> 
         [submit "Subscribe"]
      </div>

    Then it looks like this:

    6585427379.png

    In either case, I don't see any documentation on making that button extend to the fullwidth of the container. Can you help?

  •  1
    Zac Trout replied

    I managed to figure out the solve for the button not being separated from the input field by using this code:

    <p><br>[submit "Subscribe"]</p>
    

    So, that solves that part of the issue. I'd still love to know how to make the submit button extend fullwidth, but for now, this works. If you end up finding a solution though, I'd love to know it! Thanks Judith and Andrew!

  •  1,875
    Judith replied

    Hi Zac,

    Thanks for writing back.

    We are glad you were able to get a workaround for this. 

    We'll continue to look into this, if we get a different solution for it we'll share it.

    Please feel free to contact us in case of any other queries.