-
Author
-
December 13, 2015 at 18:50 #93029clynParticipant
Hi,
I found a code on KLEO forum and add the child function, new member default profile is working but, still when i check page source still can see the gravatar.com. Always calling png form gravatar.com.
COPY CODE<<span class="start-tag">div</span> <span class="attribute-name">class</span>="<a class="attribute-value">item-avatar</a>"><<span class="start-tag">a</span> <span class="attribute-name">href</span>="<a class="attribute-value" href="https://www.artnoid.net/members/testme/">https://www.mydomin/members/testme/</a>" <span class="attribute-name">title</span>="heyy"><<span class="start-tag">img</span> <span class="attribute-name">src</span>="<a class="attribute-value" href="https://www.gravatar.com/avatar/4615d934425a20988aa89a6f3ec77288?s=50&r=g&d=https%3A%2F%2Fwww.artnoid.net%2Fwp-content%2Fuploads%2F2015%2F12%2Fartnoid-avatar.png">//www.gravatar.com/avatar/4615d934425a20988aa89a6f3ec77288?s=50<span class="entity">&</span>r=g<span class="entity">&</span>d=https%3A%2F%2Fwww.artnoid.net%2Fwp-content%2Fuploads%2F2015%2F12%2Fartnoid-avatar.png</a>" <span class="attribute-name">class</span>="<a class="attribute-value">avatar user-18-avatar avatar-50 photo</a>" <span class="attribute-name">width</span>="<a class="attribute-value">50</a>" <span class="attribute-name">height</span>="<a class="attribute-value">50</a>" <span class="attribute-name">alt</span>="<a class="attribute-value">Profile picture of heyy</a>" /></<span class="end-tag">a</span>></<span class="end-tag">div</span>> which css or js can chance this? Thanks
December 13, 2015 at 18:57 #93031sharmstrModeratorYour pasted code is a mess so I cant see what you’ve done 🙂
In any case, if you want to disable gravatar, there is info out there if you google it. Here’s one
https://bp-tricks.com/snippets/completely-disable-the-use-of-gravatars-on-your-buddypress-site/
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
December 13, 2015 at 20:59 #93036clynParticipantadd_filter(‘bp_core_fetch_avatar_no_grav’, ‘__return_true’);
i must add this code before bp-custom.php , but which folder? after i must add second code to fuction.php.Why this so difficult just dont want avatar another site 🙂 , somethimes loading this avatar from gavatar.com 3- seconds or more….
Thanks
December 13, 2015 at 21:08 #93037sharmstrModeratorJust try this in your child’s functions.php file
COPY CODEadd_filter('bp_core_fetch_avatar_no_grav', '__return_true');
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
December 13, 2015 at 21:14 #93038clynParticipantIts work, thanks. At the momement i have page speed question, should i created new topic?
December 13, 2015 at 21:16 #93039sharmstrModeratorYes
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
-
AuthorPosts
The forum ‘General questions’ is closed to new topics and replies.