「固定ページ」や「投稿」にコピペで設定できるフォームメールのコードをください。
本プラグインの実物デモのフォームメールのコードは、「div型」です。
div型
次の内容をCSSに書き加えてください。
/*---------------------------------------------------
お問い合わせ受け付け画面 | お問い合わせ開始
.main_contact というクラスを当てています
--------------------------------------------------*/
.inputtext {
width: 100%;
}
.main_contact select {
background: #cfcedb;
height: 40px;
width: 95%;
border-radius: 5px;
position: relative;
z-index: 1;
}
.main_contact select::after {
position: absolute;
content: '';
width: 8px;
height: 8px;
right: 10px;
top: 50%;
transform: translateY(-50%) rotate(45deg);
border-bottom: 2px solid #666;
border-right: 2px solid #666;
z-index: -1;
}
.main_contact select {
appearance: none;
-moz-appearance: none;
-webkit-appearance: none;
background: none;
border: none;
color: #333;
font-size: 16px;
width: 100%;
height: 100%;
padding: 0 10px;
}
/* 送信確認」ボタンの中央寄せ */
.main_contact .pcenter {
margin: 0 auto;
text-align: center;
}
.main_contact .button_text,.btn_confirm{
margin: 0 auto;
text-align: center;
}
/*
.main_contact .apcf-content-key,.main_contact .apcf-content-value {
margin: 0;
padding-top: 0.5em;
padding-bottom: 0.5em;
vertical-align: middle;
line-height: 2.1;
}
*/
.main_contact .apcf-content-key { /* 左辺(項目)を右寄せにする */
text-align: right ! important;
}
.main_contact .button_text,.btn_confirm {
border: 1px solid #000;
display: inline-block;
min-width: 160px;
padding: .9em;
height: 50px;
text-align: center;
color: #fff;
font-style: normal;
letter-spacing: 1px;
margin: 0;
font-size: 0.975rem;
font-weight: bold;
margin-top: 30px;
background: #000;
box-shadow: 0px 3px 2px 0px rgba(8, 8, 8, 0.35);
border-radius: 3px;
}
.main_contact .button_text:hover,.btn_confirm:hover {
border: 1px solid #000;
color: #000;
background: #fff;
box-shadow: 0px 3px 2px 0px rgba(8, 8, 8, 0.35);
border-radius: 3px;
}
.main_contact .button_text{
margin-top: 0;
}
table型
ul型
スタイルは、ul で作成しています。文頭についてしまうリストマーク(*)を外すには、次の内容をCSSに書き加えてください。
/*---------------------------------------------------
FORM | お問い合わせ受け付け画面
--------------------------------------------------*/
#form_container ul li {
list-style-type:none
}
* お使いのテーマによっては、リストマークをあらかじめ一律削除している場合がございます。その場合は、「文頭についてしまうリストマーク」は表示されません。
【参考】『WordPressプラグイン『All Post Contact Form』に住所の自動入力機能を付けよう!』
( 2017/09/25, 20:18:29, JST )