Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to hide or replace gravatar text in change avatar page


  • danielmark
    Participant

    @danielmark

    My site is multisite and currently on localhost, I am using wordpress v5.7 and buddypress 8, I am currently trying to remove or replace this gravatar text message because I use plugin to disable access of gravatar, so I dont need this,

    The text is
    “Your profile photo will be used on your profile and throughout the site. If there is a Gravatar associated with your account email we will use that, or you can upload an image from your computer.”

    It located in wp-content/plugins/buddypress/bp-templates/bp-nouveau/buddypress/members/single/profile/change=avatar.php as I know, direct change is bad for production wordpress and I need to alter it someway, I tried to make overload theme in my child-theme but the page just show blank, help please for up to date way to solve this?

Viewing 5 replies - 1 through 5 (of 5 total)

  • Varun Dubey
    Participant

    @vapvarun

    @danielmark you can change it with help of language files

    Customizing Labels, Messages, and URLs


    Logo Translate plugin will allows you to change string within WordPress Dashboard, use system path when creating language file


    danielmark
    Participant

    @danielmark

    Thank you @vapvarun, I forgot the “Gravatar” contain hard coded link, does altering language possible with link?

    
    	<p class="bp-feedback info">
    		<span class="bp-icon" aria-hidden="true"></span>
    		<span class="bp-help-text">
    			<?php
    			/* Translators: %s is used to output the link to the Gravatar site */
    			printf( esc_html__( 'Your profile photo will be used on your profile and throughout the site. If there is a %s associated with your account email we will use that, or you can upload an image from your computer.', 'buddypress' ),
    				/* Translators: Url to the Gravatar site, you can use the one for your country eg: https://fr.gravatar.com for French translation */
    				'<a href="' . esc_url( __( 'https://gravatar.com', 'buddypress' ) ) . '">Gravatar</a>'
    			); ?>
    		</span>
    	</p>

    danielmark
    Participant

    @danielmark

    So I have created custom po and mo, its format is buddypress-custom_OS.mo and buddypress-custom_OS.po need advise please @vapvarun and anyone, WPT Custom Mo File way is outdated and I already uploaded it in wp-content/languages/ but didnt see any change


    danielmark
    Participant

    @danielmark

    Ok I thought loco is not well documented for buddypress, but after try, it actually pretty simple, althought I prefer non plugin way if possible


    cleangist
    Participant

    @cleangist

    @vapvarun

    I use a child Theme of Reign Theme. Now, I don’t want to use any additional plugins because I already have 36 plugins on my website.

    The text of Gravatar calls, has hard-coded links as seen here:

    <p class="bp-feedback info">
    		<span class="bp-icon" aria-hidden="true"></span>
    		<span class="bp-help-text">
    			<?php
    			/* Translators: %s is used to output the link to the Gravatar site */
    			printf( esc_html__( 'Your profile photo will be used on your profile and throughout the site. If there is a %s associated with your account email we will use that, or you can upload an image from your computer.', 'buddypress' ),
    				/* Translators: Url to the Gravatar site, you can use the one for your country eg: https://fr.gravatar.com for French translation */
    				'<a href="' . esc_url( __( 'https://gravatar.com', 'buddypress' ) ) . '">Gravatar</a>'
    			); ?>
    		</span>
    	</p>

    I will like to edit all these texts directly and remove the Gravatar link without breaking things.

    How do I do that?
    Regards

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Skip to toolbar