2016-03-23 21 views
0

我的网站我使用WordPress Contact Form 7从我的用户那里获取一些信息。该网站使用Bootstrap Framework构建。如何使用Bootstrap和自己的样式表设计WP联系人表单7插件表单?

现在我想用我的自定义CSS样式和引导样式的形式。所以我使用下面的代码。但它不是造型。

有人告诉我如何设计这种形式?

在这里,我使用的是什么联系表格7

<h3>Which Goal You Are Looking To Achieved ?</h3> 

<div class="asking-box"> 

    <h4><strong>Select your Goals</strong></h4> 

    <form class="form-horizontal" role="form"> 

    <div class="form-group"> 
     <label class="control-label col-sm-6" for="question">Lasting happiness </label> 
     <div class="col-sm-12"> 
      [checkbox checkbox-959 class:"my-check"] 
     </div> 
    </div> 
    <div class="form-group"> 
     <label class="control-label col-sm-6" for="question">Lasting happiness </label> 
     <div class="col-sm-12"> 
      [checkbox* checkbox-404 class:my-check] 
     </div> 
    </div> 


    </form> 
</div> 

回答

0

广告这个链接在你的头

<link href="/css/materialize.min.css" rel="stylesheet" type="text/css"> 
<link href="/css/material-design-iconic-font.min.css" rel="stylesheet" type="text/css"> 
<link href="/css/bootstrap.min.css" rel="stylesheet" type="text/css"> 

,这是在你的页面

<div class="register-box"> 
     <div class="container"> 
      <div class="row"> 
      <div class="inner-srch-pg"> 
       <div class="bnr-srch-box"> 
        <form action="" method="post" > 
         <div class="rgstr-form-cntnt"> 
         <div class="row"> 
         <?php echo do_shortcode('[contact-form-7 id="286" title="Contact form 1"]'); ?> 
         </div> 
         </div> 
        </form> 
       </div> 
      </div> 
      </div> 
     </div> 
    </div> 
    </div> 
0

你现在可以通过使用此plugin更容易地实现这一点为您的cf7表单设计响应式网格布局。

相关问题