Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Remove SPAN tag from group tab


  • 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)

  • Hugo Ashmore
    Keymaster

    @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.


    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

     


    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)


    danbpfr
    Participant

    @chouf1

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


    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


    danbpfr
    Participant

    @chouf1

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

     

     

     


    claenjoy
    Participant

    @claenjoy

    thanks!
    tricky to find it !

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Resolved] Remove SPAN tag from group tab’ is closed to new replies.
Skip to toolbar