2016-03-23 20 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表單設計響應式網格佈局。

相關問題