• Resolved evo252

    (@evo252)


    Hi,
    When we choose “Disable Gravatar and use only local avatars”, how to hide the sentence “You can change your profile picture on Gravatar.” on the profile page, because this sentence is confusing for the user.
    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,

    I saw a little x on the window that pops up, it has not come up for me.

    Hope this helps and am I answering the right questions!

    Kind regards,

    David.

    #add child theme function.php

    function space_callback( $example ) {
    $example = ”; // Maybe modify more else $example
    return $example; }
    add_filter( ‘user_profile_picture_description’, ‘space_callback’ );

    Hi Kayaalp
    I also would like to hide this link, but the code did not work on my site, I put it in my code snippet, maybe that is why?

    I think its a plugin “code snippet”. I’m currently using it code, but in function.php on child theme. Copy paste does not work because of the prevention against XSS, you must correct the quotation mark.
    Single quote '
    Of course its also can be added to on the original theme in function.php, but if theme is updated you need to add it again, that’s why child theme very important.
    if this is not the problem,
    Maybe, you should think to install the one-click child theme plugin.
    Copy Paste now works,
    function space_callback( $example ) {
    $example = ''; // Maybe modify more else $example='Hi'
    return $example; }
    add_filter( 'user_profile_picture_description', 'space_callback' );

    • This reply was modified 5 years, 4 months ago by kayaalp.
    • This reply was modified 5 years, 4 months ago by kayaalp.
    • This reply was modified 5 years, 4 months ago by kayaalp.
    • This reply was modified 5 years, 4 months ago by kayaalp.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to hide “change your profile picture on Gravatar.”’ is closed to new replies.