Skip to:
Content
Pages
Categories
Search
Top
Bottom

Social icons on buddypress profile not showing


  • thecoder
    Participant

    @guedoart

    Hello, i have created a wordpress social website with buddypress, but when i try to show the social icons on user profile header, only facebook twitter behance dribbble instagram and youtube can be shown.

    i’m using xprofile fields and i can’t add more social icons like Linkedin Twitch etc.. so after i searched on this error i managed to find some codes but it didn’t work this is the code that i added to my Bp-custom.php :

    //Social Media Icons based on the profile user info
    function member_social_extend(){

    $dmember_id = $bp->displayed_user->id;

    $twitch_info = xprofile_get_field_data(‘twitch’, $dmember_id);

    echo ‘<div class=”socialv-profile-left col-lg-4″>’;
    echo ‘<ul class=”class=”item-social list-inline””>’;

    if ($twitch_info) {

    echo ‘<li class=”Phone”><i class=”icon-phone”></i>‘;

    }

    echo ‘‘;
    echo ‘</div>’;
    }
    add_filter( ‘bp_before_member_header_meta’, ‘member_social_extend’ );

    i will be grateful for any kind of help
    thanks.

  • You must be logged in to reply to this topic.
Skip to toolbar