简体   繁体   English

在Wordpress主菜单中添加buddypress配置文件菜单项

[英]Adding buddypress profile menu items in wordpress primary menu

Is it possible to add buddypress profile menu in primary menu of the wordpress them. 是否有可能在wordpress的主菜单中添加buddypress配置文件菜单。 If is possible please guide me how can I do this. 如果可以的话,请指导我该怎么做。 I also want to remove counts in primary menu only. 我也只想删除主菜单中的计数。

Thanks 谢谢

Yes, it's possible. 是的,有可能。 Here is an appropriate page in BuddyPress codex: https://codex.buddypress.org/getting-started/buddypress-links-in-wordpress-menus/ 这是BuddyPress编解码器中的相应页面: https : //codex.buddypress.org/getting-started/buddypress-links-in-wordpress-menus/

Below is a small excerpt from that page: 以下是该页面的一小段摘录:


Links include: Sitewide Activity, Members Directory, Groups Directory, and/or Blogs Directory (multisite only). 链接包括:站点范围内的活动,成员目录,组目录和/或博客目录(仅限多站点)。

  1. Navigate to Appearance > Menus. 导航到外观>菜单。
  2. Create a new menu. 创建一个新菜单。
  3. Under the “Pages” section, select the links to the BuddyPress pages. 在“页面”部分下,选择指向BuddyPress页面的链接。
  4. Click on the “Add to Menu” button. 点击“添加到菜单”按钮。
  5. Arrange the menu links as you like it. 随意排列菜单链接。
  6. Click on “Save the Menu” button. 点击“保存菜单”按钮。
  7. Go to the “Manage Locations” tab and assign this menu to a theme menu location. 转到“管理位置”选项卡,然后将此菜单分配给主题菜单位置。
  8. Click save and refresh your site to see your new custom menu in place. 单击保存并刷新您的站点以查看新的自定义菜单。

You can also add links specific to the Logged-in Member only (all profile links). 您还可以添加仅特定于登录成员的链接(所有配置文件链接)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM