Remove Count and Rename Tabs


#1

Beside the word media on a users profile it has a count of how much media they have, how can I remove that? For example it looks like “Media (28)” but I only want it to say “Media”.

Also How Can I rename the tab to “Photos” and remove the number count for the sub-tabs “albums” & “photos”?


#2

There is no easy way of removing the media count. But for starters you could check the global variable $bp. The object you would be looking for is $bp->bp_nav & $bp->bp_options_nav. Also an easy way would be to hide it using css.

For renaming the tab you could make use of the RTMEDIA_MEDIA_LABEL constant -> http://rtcamp.com/rtmedia/docs/developer/rtmedia-defined-constants/


#3

What css should i use?


#4

Try this

#buddypress div.item-list-tabs ul #media-personal-li a span { display: none; }

#5