Skip to:
Content
Pages
Categories
Search
Top
Bottom

Please help remove/replace gravatar text


  • danielmark
    Participant

    @danielmark

    I am tried to remove/replace the gravatar text from bp-nouveau/buddypress/members/single/profile/change-avatar,
    tried it by overriding file, first I created directory in my theme like this : themes=name/buddypress/members/single/profile/change-avatar.php then copying all theme and comment all gravatar function to test, but the final look my members/member-name/profile/change-avatar/ just empty and header broken,
    then try to override the page with same code like original one but it still empty page.

    here what I need to replace or remove, that link of gravatar made it annoying to replace text via plugin

    
    <?php
    /**
     * BuddyPress - Members Profile Change Avatar
     *
     * @since 3.0.0
     * @version 3.2.0
     */
    ?>
    <?php bp_nouveau_member_hook( 'before', 'avatar_upload_content' ); ?>
    
    <?php if ( ! (int) bp_get_option( 'bp-disable-avatar-uploads' ) ) : ?>
    
    	<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>
    
    

    and

    
    	<p 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. To change your profile photo, create an account with %s using the same email address as you used to register with this site.', '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>'
    		); ?>
    	</p>
    
    <?php endif; ?>
    
    <?php
    bp_nouveau_member_hook( 'after', 'avatar_upload_content' );

    Wordpress version : 5.7.2
    buddypress version : 8.0.0

  • You must be logged in to reply to this topic.
Skip to toolbar