先看結果,是不是很心動?其實很簡單,跟著小編一路來進修把,若何美化wordpress網站的評論框。
 在本家兒標題問題錄中找到comments.php文件
 打開comments.php文件找到以下代碼,點竄為以下,如許你評論框就會多出你怎么看的文字
<p?class="comment-form-comment"><textarea?placeholder="你怎么看?"?id="comment"?name="comment"?rows="4"?tabindex="4"?onKeyDown="xx
(this.form.comment,this.form.total,this.form.used,this.form.remain);"?onKeyUp="xx(this.form.comment,this.form.total,this.form.used,this.form.remain);"></textarea></p>
 找到一個你喜好評論美化圖片,png最好
 在本家兒題樣式CSS里添加以下代碼XX為網址路徑一般是main.css
#commentform textarea {background-image:url(http://xxxxxxxxxx/2.png);background-repeat:no-repeat;background-position:center;}
 最后再到網站前臺刷新評論處看看吧
 0 篇文章
如果覺得我的文章對您有用,請隨意打賞。你的支持將鼓勵我繼續創作!