Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Remove SPAN tag from group tab

  • @m1000

    Participant

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

    Participant

    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.

    @chouf1

    Participant

    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

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

    @chouf1

    Participant

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

    @m1000

    Participant

    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

    @chouf1

    Participant

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

     

     

     

    @claenjoy

    Participant

    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