Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Foreign Character not working in BuddyPress Widget

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

  • danbp
    Participant

    @danbp

    Hi,

    try this snippet (add it to bp-custom.php or child theme’s functions.php):

    function garfrey_widget_title( $title ) {
    if ( $title == "Members") {
    $title = __('Members Translation') ; // foreign char. here
    }
    return $title;
    }
    add_filter ( 'widget_title' , 'garfrey_widget_title', 21 );

    Reference:
    https://codex.wordpress.org/Plugin_API/Filter_Reference/widget_title


    garfrey
    Participant

    @garfrey

    Hi danbp thank you for helping ,

    I had put your script into bp-custom.php, but not working .
    any mistake i had made ?

    function garfrey_widget_title( $title ) {
    if ( $title == "Members") {
    $title = __('新加入会员') ; // foreign char. here
    }
    return $title;
    }
    add_filter ( 'widget_title' , 'garfrey_widget_title', 21 );

    Thank you.


    garfrey
    Participant

    @garfrey

    Hi danbp , its working ! thanks =D

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Foreign Character not working in BuddyPress Widget’ is closed to new replies.
Skip to toolbar