Hello @teeboy4real,
Paste these lines of code in your child theme’s functions.php
add_action( 'bp_share_user_services', 'wb_add_watsap_share', 10, 3 );
function wb_add_watsap_share( $services, $activity_link, $activity_title ) {
echo '<a target="blank" class="bp-share bps-mobile-display" href="https://api.whatsapp.com/send?text='. $activity_link . '&image_sharer=1" data-action="share/whatsapp/share" rel="whatsapp"><span class="fa-stack fa-lg"><i class="fa fa-whatsapp"></i></span></a>';
echo '<a target="blank" class="bp-share bps-desktop-display" href="https://web.whatsapp.com/send?text='. $activity_link . '&image_sharer=1" data-action="share/whatsapp/share" rel="whatsapp"><span class="fa-stack fa-lg"><i class="fa fa-whatsapp"></i></span></a>';
}
And these lines in your css file.
.bps-desktop-display {
display: inline-block;
}
.bps-mobile-display {
display: none;
}
.fa-whatsapp {
color: #5cbc2e;
}
@media( max-width: 767px ) {
.bps-mobile-display {
display: inline-block!important;
}
.bps-desktop-display {
display: none!important;
}
}