繁体   English   中英

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

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

我在Wordpress网站上有“联系表格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>

然后这是我的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>

这是我的页脚表单的样式表:

.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;
}

我正在考虑将它们包装在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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM