子比主题美化 – 用户中心添加UID和注册天数

教程来源于狐狸库。。。。。。。。

效果预览:

图片[1]-子比主题美化 – 用户中心添加UID和注册天数-木子网单资源

代码部署:

文件路径:/www/wwwroot/huliku.com/wp-content/themes/zibll/inc/functions/zib_author.php

搜索如下内容

$info_html .= $identity ? '<div class="user-identity flex ac hh">' . $identity . '</div>' : '';

替换为以下内容

$info_html .= $identity ? '<div class="user-identity flex ac hh"><span class="but c-red" data-clipboard-tag="ID" data-clipboard-text="357"><svg class="icon" aria-hidden="true"><use xlink:href="#icon-user-color"></use></svg>UID:'.$author_id.'</span><span class="but" style="--this-bg: linear-gradient(43deg, #ff6ac34a 0%, #82e1ff 46%, #ff6ac34a 100%);"><img src="ID图片链接" style="max-width: 15px;">
 '.zib_get_user_join_day_desc($author_id, '').'~</span>' . $identity . '</div>' : '';

 

 

文件路径:/www/wwwroot/huliku.com/wp-content/themes/zibll/inc/functions/user/page.php

替换好图片链接即可!也可以用下面这张:

图片[2]-子比主题美化 – 用户中心添加UID和注册天数-木子网单资源

 

© 版权声明
THE END
喜欢就支持一下吧
点赞10 分享
评论 共1条

请登录后发表评论