BuddyDev

Better group type directory title for BuddyPress

A few days ago, we discussed about having better member type directory title. Today, let us see the same for the group types directory title. In this post, we will see how to improve the directory title for the group types directory:-

Problem:-

By default, BuddyPress does not update the  directory title to reflect current group type. You may see it in the following screenshot.

As you see, we are looking at the group type teams directory but it is still showing only “Groups” in the title.

Solution:-

You can put the following code in your bp-custom.php or in your theme’s functions.php

Here is the final result.

Enjoy!

Leave a Reply

Are you looking for support?

Please ask support questions in BuddyDev Forum and help us serve you better. Please use comment for general discussion/feature suggestions.

Your email address will not be published. All the fields marked as * are required.

If you are posting code, please use <pre> { Your Code Block } </pre>. Example:- <pre> echo $name; </pre>

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">