需要更新好友按顶栏
我是 word press 的新手,正在尝试修改 Buddy Press 顶部栏。
我当前的顶部栏是
我想使用户区域顶部栏像
基本区别是将登录用户图像/飞行员放在栏的左侧。
如果可能的话,还删除右侧的访问链接。
谢谢
i am new to word press and trying to modify Buddy Press top bar.
my current top bar is
i want to make user area top bar like
the basic difference is to put the login user image/aviator on left side of bar.
and also if possible remove visit link from right side.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我建议您首先创建一个自定义主题(或插件,如果您愿意),它是 bp-default 主题的子主题。请按照此处或这里。
从那里你可以像这样删除访问菜单:
当涉及到头像时,最简单的解决方案可能是取消注册 BuddyPress 默认管理栏徽标
bp_adminbar_logo
,创建一个替换函数来输出头像,最后而是注册该函数。在那里,只需添加一些 CSS 即可完成:)
I suggest you start by creating a custom theme (or plugin if you prefer) that is a child theme of the
bp-default
theme. Follow the instructions here or here.From there you can remove the Visit menu like so:
When it comes to the avatar, the easiest solution is probably to unregister BuddyPress default admin bar logo
bp_adminbar_logo
, create a replacement function to output the avatar, and finally register that function instead.There, just add some CSS and you're done :)