Skip to:
Content
Pages
Categories
Search
Top
Bottom

Remove SPAN tag from group tab

  • Avatar of m1000
    m1000
    Participant

    @m1000

    Hi,

    How to remove/edit SPAN tag generated around the numbers in the group tab, it’s loaded by bp_get_options_nav()

Viewing 7 replies - 1 through 7 (of 7 total)
  • Avatar of Hugo
    Hugo
    Moderator

    @hnla

    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.

    Avatar of danbpfr
    danbpfr
    Participant

    @chouf1

    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

     

    Avatar of m1000
    m1000
    Participant

    @m1000

    Thanks but I’m talking about this file – bp-default/groups/single/home.php
    I want to add brackets inside span like Members(12)

    Avatar of danbpfr
    danbpfr
    Participant

    @chouf1

    Search for your items in the pot file. There you will see the exact file name where member # is.

    Avatar of m1000
    m1000
    Participant

    @m1000

    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

    Avatar of danbpfr
    danbpfr
    Participant

    @chouf1

    You can remove the span and add your own text through the language file. That’s the easiest way.

     

     

     

    Avatar of claenjoy
    claenjoy
    Participant

    @claenjoy

    thanks!
    tricky to find it !

Viewing 7 replies - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.