gpt4 book ai didi

html - 在联系表单 7 表单标签中添加 div

转载 作者:太空宇宙 更新时间:2023-11-04 10:31:17 24 4
gpt4 key购买 nike

我正在尝试添加 <div class="content-inner"></div>在 contact form 7 的 form 标签下,因此表单的内部内容将被包装。

到目前为止,这是我的代码:

<div class="form-container">
<div class="contact-heading text-center">
<h1>Contact</h1>
</div>
<div class="form-content">
<?php echo do_shortcode( '[contact-form-7 id="140" title="Contact"]' ); ?>
</div>
</div>

我不知道把 div 放在哪里,所以它在我的表单标签内。任何帮助将不胜感激!

最佳答案

您不能在联系表单插件短代码中添加 div。但是,您可以在创建和编辑表单时添加 div

我使用 div 作为提交按钮

<label class='contact_form_name'> Your Name <span style='color:red;'>*</span>
[text* your-name] </label>

<label class='contact_form_email'> Your Email <span style='color:red;'>*
</span>
[email* your-email] </label>

<label class='contact_form_subject'> Subject<span style='color:red;'>*</span>
[text your-subject] </label>

<label class='contact_form_message'> Your Message<span style='color:red;'>*
</span>
[textarea your-message] </label>
<div class='contact_form_submit'>
[submit "Send"]
</div>

关于html - 在联系表单 7 表单标签中添加 div,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36480146/

24 4 0