贴上小工具栏的CSS代码和修改链接代码:
css样式:
a.button.link-menu {
font-size: 12px;
padding: 3px 8px 4px 10px;
margin-left: 3px;
border-radius: 2px;
line-height: 30px;
color: #FFFFFF;
background: #169fe6!important;
}
修改文件:/wp-content/plugins/bbpress/includes/common/widgets.php 大致在 140 行
<div class="bbp-logged-in"><?php echo get_avatar( bbp_get_current_user_id(), '80' ); ?>
<h4>您好,<?php bbp_user_profile_link( bbp_get_current_user_id() ); ?></h4>
<a class="button link-menu" href="https://www.weixiaoduo.com/account" target="_blank">我的账户</a>
<a class="button link-menu" href="#" target="_blank">查看订单</a>
<a class="button link-menu" href="https://www.weixiaoduo.com/profile" target="_blank">个人资料</a>
<a class="button link-menu" href="#" target="_blank">产品下载</a>
<?php bbp_logout_link(); ?>
</div>