首先,打开wp-content/themes/begin/inc文件夹,找到widgets.php文件。(知更鸟Begin5.2版本主题为例)
添加“作者”二字。找到1906行
- <h4 class="author-the"><?php the_author(); ?></h4>
中间添加以下代码:
- <span><strong style="background:red"><font color="#ffffff">作者</font></strong></span>
变成:
- <h4 class="author-the"><?php the_author(); ?> <span><strong style="background:red"><font color="#ffffff">作者</font></strong></span></h4>
然后在1911行,添加一段“自述语句”
- <div class="author-description"><?php the_author_meta( 'user_description' ); ?></div>
中间添加以下代码:
- <font color="#999">给自己订个小目标,5年之内挣100亿</font>
修改后的代码是:
- <div class="author-description"><?php the_author_meta( 'user_description' ); ?><font color="#999">给自己订个小目标,5年之内挣100亿</font></div>
把上面代码中的“自述语句”修改成你的就OK了。
大功告成!