先看结果,是不是很心动?其实很简单,跟着小编一路来进修把,若何美化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 篇文章
如果觉得我的文章对您有用,请随意打赏。你的支持将鼓励我继续创作!