简体   繁体   English

WordPress的联系表格7验证不符合各自的输入

[英]wordpress Contact form 7 validation not aligning to respective input

I have the plugin "contact form 7" on my Wordpress site and I got stuck on how to align the validation messages properly. 我在Wordpress网站上有“联系表格7”插件,但我对如何正确对齐验证消息感到困惑。

this is the response when ever I try the output design. 每当我尝试输出设计时,这就是响应。

在此处输入图片说明

This is the HTML form I added to my "contact form 7". 这是我添加到“联系表7”中的HTML表单。

[response]
[text* your-name class:rounded-input class:cols-4 placeholder "Your Name"]
[text* your-position class:rounded-input class:cols-4 placeholder "Position"]
[text* company class:rounded-input class:cols-4 placeholder "Company Name"]
[email* your-email class:rounded-input class:cols-4 placeholder "Email Name"]

<label class="center-content">
    [checkbox* agreement class:rounded-input "I’m looking for the best solution with fantastic local support."]
</label>

    [submit class:button "Get a Solution"]

<p><small>*Your privacy is very important to us. To learn more about our information processesing procedures, please visit our <a href="#">Privacy Policy</a>.</small></p>

Then here is the HTML in my PHP file: 然后这是我的PHP文件中的HTML:

<footer class="contact-form clearfix" style="background-image: url(<?php echo get_template_directory_uri(); ?>/img/contact-bg.png)">
    <div class="form-holder">
    <h2>Together, we’ll do great.</h2>
    <p> Cras venenatis feugiat nibh quis tempus. Quisque libero nibh, consequat posuere,<br> tempus pulvinar purus.</p>

    <?php echo do_shortcode('[contact-form-7 id="66" title="Contact form"]'); ?>
    </div>
</footer>

Then this is my stylesheet for my footer form: 这是我的页脚表单的样式表:

.form-holder {
    text-align: center;
    padding: 20px 5%;
    color: #fff;
}

.rounded-input {
    max-width: 1020px;
    margin: 20px auto;
}

.rounded-input.cols-4 {
    border: 1px solid #fff;
    border-radius: 3px;
    width: 23%;
    margin: 15px 1%;
    background: transparent;
    color: #fff;
}

I am thinking of wrapping them inside a div . 我正在考虑将它们包装在div

在您的html中,您分配了18个col,只能使用12个col,因此将简码更改为

[text* your-name class:rounded-input class:cols-3 placeholder "Your Name"]

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 联系表格和输入验证问题 - Problems with contact form and input validation 未执行 Wordpress 联系表 7 自定义验证规则 - Wordpress Contact Form 7 custom validation rule not executed WordPress联系人表单验证(包括Google reCaptcha验证问题) - WordPress Contact Form Validation Including Google reCaptcha Validation Issue 需要自定义wordpress联系人form-7表单字段验证 - Need to customize wordpress contact form-7 form fields Validation Bootstrap 模式中的 WordPress 自定义联系表单未显示验证和提交响应 - WordPress custom Contact Form in Bootstrap modal is not showing validation & submission response 如果与 prepare 语句一起使用,没有输入验证的 PHP 联系表是否安全? - Is PHP Contact Form without input validation safe if used with prepare statements? PHP Contact Form最佳实践:输入验证不起作用 - PHP Contact Form Best Practice: Input Validation not working WordPress Contact Form 7插件-如何将输入数据保存到jquery cookie中? - WordPress Contact Form 7 Plugin - How to save input data into jquery cookie? WordPress中是否存在带有日期和时间输入的插件联系表? - Plugin contact form with date and time input exists in Wordpress? 联系表格 7 - 自定义验证 - Contact Form 7 - Custom Validation
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM