• 欢迎 游客 您的光临,下载之前请先阅读 积分规则(暂行) 。任何技术问题请在论坛提问,本站定制插件、模板主题。售前、售后问题请联系QQ:5916171
  • 发帖需要扣除两点虚拟积分是为了控制乱发广告,如不便可进群提问。点击链接加入群聊【XenForo讨论社区】:群号1:143277648

模板修改 用户个人设置页面列表图标

小关

打酱油的路过~~
UID
255
注册
2019/01/25
消息
488
解决方案
12
黄金
15,710G
你想在账户设置页面上显示这样的图标吗?
QQ截图20190822084434.png

在模板中找到extra.less,然后将下列代码加入:
Less:
/* 账户个人设置页面列表图标 */
[data-template="account_alerts"], &[data-template="account_reactions"], &[data-template="account_bookmarks"],
&[data-template="account_details"], &[data-template="account_security"], &[data-template="account_privacy"],
&[data-template="account_preferences"], &[data-template="account_signature"], &[data-template="account_upgrades"],
&[data-template="account_connected"], &[data-template="account_following"], &[data-template="account_ignored"] {
    .p-body-sideNavContent a.blockLink {
        &:before {
            .m-faBase();
            padding-right: 5px;
        }
        &[href*="/members/"]:before {
            .m-faContent(@fa-var-user);
        }
        &[href*="/account/alerts"]:before {
            .m-faContent(@fa-var-bell);
        }
        &[href*="/account/reactions"]:before {
            .m-faContent(@fa-var-thumbs-up);
        }
        &[href*="/account/bookmarks"]:before {
            .m-faContent(@fa-var-bookmark);
        }
        &[href*="/account/account-details"]:before {
            .m-faContent(@fa-var-user-cog);
        }
        &[href*="/account/security"]:before {
            .m-faContent(@fa-var-shield-alt);
        }
        &[href*="/account/privacy"]:before {
            .m-faContent(@fa-var-lock);
        }
        &[href*="/account/preferences"]:before {
            .m-faContent(@fa-var-cogs);
        }
        &[href*="/account/signature"]:before {
            .m-faContent(@fa-var-signature);
        }
        &[href*="/account/upgrades"]:before {
            .m-faBase('Brands');
            .m-faContent(@fa-var-paypal);
        }
        &[href*="/account/connected-accounts"]:before {
            .m-faContent(@fa-var-users-class);
        }
        &[href*="/account/following"]:before {
            .m-faContent(@fa-var-user-plus);
        }
        &[href*="/account/ignored"]:before {
            .m-faContent(@fa-var-user-minus);
        }
        &[href*="/logout"]:before {
            .m-faContent(@fa-var-sign-out);
        }
    }
}
/*****/
然后保存即可
 
顶部 底部