4 pointsGetting my WPMU DEV WingsI'm new here
abasmaci
Member
—
6th December 2011 (5 months ago)
Hi
I have Buddypress 1.5.1 and I am using the 'Product' theme version 3.1.2. I associated the wordpress pages I named "Projects" and "Discussions" with the "Groups" and "Discussion Forums" Buddypress component directories respectively, thinking they would take the names given to the wordpress pages. Unfortunately that did not work. My question is - Is there a way to rename the pages within the Buddypress navigation bar. I uploaded my buddypress bar and what I would like to do is rename "Groups" to "Projects" and "Forums" to "Discussions"
Hi
I have Buddypress 1.5.1 and I am using the 'Product' theme version 3.1.2. I associated the wordpress pages I named "Projects" and "Discussions" with the "Groups" and "Discussion Forums" Buddypress component directories respectively, thinking they would take the names given to the wordpress pages. Unfortunately that did not work. My question is - Is there a way to rename the pages within the Buddypress navigation bar. I uploaded my buddypress bar and what I would like to do is rename "Groups" to "Projects" and "Forums" to "Discussions"
7257 pointsLike some sort of WPMU DEV GodMindblowingly helpful memberLifetime member
Support Chimp
—
6th December 2011 (5 months ago)
#
To change the BuddyPress pages you need to do so within the Buddy admin:
/wp-admin/network/admin.php?page=bp-page-settings
Admin --> Network Admin --> BuddyPress --> Pages
For non network mode you obviously don't need to go into the Network Admin area.
And don't forget in some themes you use the custom menu to define the nav links. If so then you need to change that under the Appearance options for your site.
Could you please give me a little more detail on how to access the Buddy admin since I don't quite follow, or provide a link to the appropriate explanation
Oh ok, yes I did change that before posting my question. In the image attached you will see how I have set up the pages. But for some reason in the Buddypress Nav bar shows "Groups" instead of "Projects" and "Forums" instead of "Discussion" So would it be best if I used a custom menu instead as you also suggested
7257 pointsLike some sort of WPMU DEV GodMindblowingly helpful memberLifetime member
Support Chimp
—
7th December 2011 (5 months ago)
#
Sorry for taking so long to get back to you. I was studying the code on this theme and that of the new 1.5 BuddyPress so I could be sure of the answer I give. Took me about a little while :-(
The custom menu position which is available is only for the top bar within the "Products" theme.
BuddyPress 1.5 changed how it does things a little. Diving into the templates on my install I went to:
They all appeared to pull the old original slug. Tammy knows her themes and Buddy better than I so I will tag her and see if she has a better answer than I, or something more insightful than I offer here.
4842 pointsLike some sort of WPMU DEV GodMindblowingly helpful memberLifetime member
Theme Designer
—
8th December 2011 (5 months ago)
#
Whose Tammy? :)
I think it's getting a little overcomplicated though in your example lets see if we can just get a small hammer not missile to crack this problem.
How about a custom language file just change those languages? It's the way I suggest users go rather than change files for simple text changes. Far easier than all that code.
This is a relatively common request, and it requires a little bit of work in setting up the language file, but is a reliable and upgrade friendly way of handling things. Hacking the core is always a bad way to do things, using language files is the modular way to handle it.
Responses (7)
Support Chimp — 6th December 2011 (5 months ago) #
To change the BuddyPress pages you need to do so within the Buddy admin:
/wp-admin/network/admin.php?page=bp-page-settings
Admin --> Network Admin --> BuddyPress --> Pages
For non network mode you obviously don't need to go into the Network Admin area.
And don't forget in some themes you use the custom menu to define the nav links. If so then you need to change that under the Appearance options for your site.
Member — 6th December 2011 (5 months ago) #
Could you please give me a little more detail on how to access the Buddy admin since I don't quite follow, or provide a link to the appropriate explanation
Thanks
Support Chimp — 6th December 2011 (5 months ago) #
In the admin of WordPress if in single site most, you will find it down the left hand side of the admin, as shown in the image I attached.
If the plugin was Network activated then you first navigate to Network Admin, it will then be on the right.
This is assuming you are using the default WordPress admin theme.
If its network then this on the end of your domain will work:
/wp-admin/network/admin.php?page=bp-page-settings
Member — 6th December 2011 (5 months ago) #
Oh ok, yes I did change that before posting my question. In the image attached you will see how I have set up the pages. But for some reason in the Buddypress Nav bar shows "Groups" instead of "Projects" and "Forums" instead of "Discussion" So would it be best if I used a custom menu instead as you also suggested
Ali B
Support Chimp — 7th December 2011 (5 months ago) #
Sorry for taking so long to get back to you. I was studying the code on this theme and that of the new 1.5 BuddyPress so I could be sure of the answer I give. Took me about a little while :-(
The custom menu position which is available is only for the top bar within the "Products" theme.
BuddyPress 1.5 changed how it does things a little. Diving into the templates on my install I went to:
/public_html/wp-content/themes/product/library/components/buddypress/buddypress-navigation.php
In here is the code which controls the BuddyPress menu within the "Products" theme.
The code:
The following:
BP_GROUPS_SLUG
BP_BLOGS_SLUG
BP_MEMBERS_SLUG
BP_ACTIVITY_SLUG
They all appeared to pull the old original slug. Tammy knows her themes and Buddy better than I so I will tag her and see if she has a better answer than I, or something more insightful than I offer here.
But as a quick fix:
For the sake of future upgrades you won't want to edit the themes actual files, instead create a child theme. Some information is here:
http://premium.wpmudev.org/the-buddypress-manual/what-are-parent-and-child-themes/
Theme Designer — 8th December 2011 (5 months ago) #
Whose Tammy? :)
I think it's getting a little overcomplicated though in your example lets see if we can just get a small hammer not missile to crack this problem.
How about a custom language file just change those languages? It's the way I suggest users go rather than change files for simple text changes. Far easier than all that code.
Member — 8th December 2011 (5 months ago) #
Info on custom language files: http://codex.buddypress.org/extending-buddypress/customizing-labels-messages-and-urls/
Info on changing the slugs: http://codex.buddypress.org/extending-buddypress/changing-internal-configuration-settings/ (I think this is more to pre-1.5 era)
This is a relatively common request, and it requires a little bit of work in setting up the language file, but is a reliable and upgrade friendly way of handling things. Hacking the core is always a bad way to do things, using language files is the modular way to handle it.
Become a member