Remove friendship-buttons title-tooltip
-
I have a problem by managing groups in front .I ‘d like to remove the title tooltips that show up by hovering the friendship-buttons (add friend and cancel friendship request). I have this code in the header.php of my child-theme:
<script type="text/javascript"> window.onload = function(){ var titled = document.querySelectorAll('[title]'); var numTitled = titled.length; var i = 0; for (i=0; i<numTitled; i++){ titled[i].removeAttribute('title'); } }; </script>
Works fine, but when I add a friend, the button changes in “cancel friendship request” shows the title again by hovering.
In the forum I found this code:
add_filter( ‘bp_core_avatar_title’, ‘__return_false’ );
Perhaps I can use this after changing it, but into what?
Would be nice if someone has a solution. Thanks in advance!
- You must be logged in to reply to this topic.