This topic has 5 replies, 2 voices, and was last updated 8 years by sharmstr.

  • Author
  • #93029
     clyn
    Participant

    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
    #93031
     sharmstr
    Moderator

    Your 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 solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #93036
     clyn
    Participant

    add_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

    #93037
     sharmstr
    Moderator

    Just try this in your child’s functions.php file

    COPY CODE
    
    add_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 solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #93038
     clyn
    Participant

    Its work, thanks. At the momement i have page speed question, should i created new topic?

    #93039
     sharmstr
    Moderator

    Yes

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

Viewing 6 posts - 1 through 6 (of 6 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?