Why? Edit how?
Always best to explain what you’re trying to achieve.
You can style span tags easily enough in fact that’s obviously why they are wrapping those characters, as for removing there is little point a span is simply the inline aggregating equivalence of a div.
hi @m1000,
the bp_get_options_nav filter doesn’t output the span:
echo apply_filters( ‘bp_get_options_nav_’ . $subnav_item[‘css_id’], ‘<li id=”‘ . $subnav_item[‘css_id’] . ‘-‘ . $list_type . ‘-li” ‘ . $selected . ‘><a id=”‘ . $subnav_item[‘css_id’] . ‘” href=”‘ . $subnav_item[‘link’] . ‘”>’ . $subnav_item[‘name’] . ‘</a></li>’, $subnav_item );
the span is hard coded in bp-default/groups/index.php:35
Thanks but I’m talking about this file – bp-default/groups/single/home.php
I want to add brackets inside span like Members(12)
Search for your items in the pot file. There you will see the exact file name where member # is.
OK, I see it here:
#: bp-groups/bp-groups-loader.php:436
msgid “Members %s”
msgstr “”
But it’s not that I cannot modify it via theme’s functions.php
You can remove the span and add your own text through the language file. That’s the easiest way.
thanks!
tricky to find it !