I’ve used this website before as an example and I hope he doesn’t mind, but check out leadpress.com as an example.
You’re not running BuddyPress in a sub directory, but actually just stopping it from taking over the root and /blog URLs, and instead using the normal WordPress way of assigning pages.
Rename home.php to community.php.
Use the Page Template method to name that page template “Community.”
In the blog admin, Make a page for your home, a page for your blog, and a page for your community, all with similar slugs.
The community page will use the “Community” page template.
Goto your blog settings and assign the front page to be the page you made for home, and make the index/blog page the one you made for your blog.
Then, you will want to install bbPress in a folder called “/community/forums/” and be sure to create a page with the slug “forums” as a sub page of “community”
That should do it?
Thank you for a quick reply.
I don’t really understand this part:
Goto your blog settings and assign the front page to be the page you made for home, and make the index/blog page the one you made for your blog.
Goto your blog settings and assign the front page to be the page you made for home, and make the index/blog page the one you made for your blog.
In your WPMU admin area, go to “Settings > Reading”.
Select “A static page”
Then for the “Front page” that you created, select “Home”.
For your “Posts page” that you created, select “Blog”.
Well all the pages work, its just that how would I setup my links?
Do I just put in the hard links like domain.tld/community?
Because right now when I click Visit Site it goes to the Home page but the members link lights up.
Not sure why the Members link is lighting up… that should only light up when you go to domain.tld/members/.
I’m guessing you’re using the BuddyPress home theme.
Do you have a customized BP_MEMBERS_SLUG, per chance?
I looked it up in bp-core.php (is that the actual location?) and it says:
define( 'BP_MEMBERS_SLUG', 'members' );
I’m guessing from that statement that you don’t.
You’d probably want to make some changes in your theme’s header.php.
If you’re using the BuddyPress home theme, that file can be found here:
/wp-content/themes/bphome/header.php
The part you want to look for is:
<ul id="nav">
John could probably help you better.
Yeah I am using the BuddyPress Home Theme, should I just change each link to /community/members, /community/blogs, etc. ?
Would that work with what I have setup (the three seperate pages)?
That is what I would do.
But keep in mind, you’d also have to make the same changes to your BP member theme.
If you’re using the default BP member theme, that would be located here:
/wp-content/bp-themes/bpmember/header.php
So I set the Members link to
domain.tld/community/members/
But when I click it, it redirects to domain.tld/members/admin
The groups and blogs link work but don’t light which isn’t that bad.
If you want all of the directories to be underneath the community page, I would do exactly the same thing you just did to make the community page, and make members/groups/blogs directory pages. I’m not sure there’s a way to contain ALL of BuddyPress within a subdirectory, considering that your users and groups and blogs are all linked off of the root of the site, and not the root of a specific blog, subdomain, or subdirectory.
I still don’t get why when I go to domain.tld/home the members link lights up (in the BuddyPress Home Theme). And how do I make the community WordPress Page appear instead of a page listing the folders inside the community folder (forums).
Actually nevermind the community part, I ‘ll just structure the site like leadpress.com (not all under community)
Thank you for the help Ray and John.