知更鸟Begin主题侧边栏关于作者小工具美化

发布时间:

知更鸟Begin主题侧边栏关于作者小工具美化

首先,打开wp-content/themes/begin/inc文件夹,找到widgets.php文件。(知更鸟Begin5.2版本主题为例)

添加“作者”二字。找到1906行

  1. <h4 class="author-the"><?php the_author(); ?></h4>

中间添加以下代码:

  1. &nbsp;&nbsp;<span><strong style="background:red"><font color="#ffffff">作者</font></strong></span>

变成:

  1. <h4 class="author-the"><?php the_author(); ?> &nbsp;&nbsp;<span><strong style="background:red"><font color="#ffffff">作者</font></strong></span></h4>

然后在1911行,添加一段“自述语句”

  1. <div class="author-description"><?php the_author_meta( 'user_description' ); ?></div>

中间添加以下代码:

  1. <font color="#999">给自己订个小目标,5年之内挣100亿</font>

修改后的代码是:

  1. <div class="author-description"><?php the_author_meta( 'user_description' ); ?><font color="#999">给自己订个小目标,5年之内挣100亿</font></div>

把上面代码中的“自述语句”修改成你的就OK了。

大功告成!