Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Subfolder now Root .com Folder


Gianfranco
Participant

@gian-ava

Tmort, you need to put this in your” functions.php” file (in the theme or child theme directory) or in “bp-custom.php” (in the plugins directory):

// Getting rid of the subfolder in URLs/permalinks
function my_bp_override_core_domain() {
$domain = get_bloginfo('url');
return $domain;
}
add_filter('bp_core_get_root_domain','my_bp_override_core_domain');

Let me know if that did the trick.

Credits for the code goes to r-a-y, who wrote it for me.

Skip to toolbar