When uploading profile cover images, it seems that the “Your new cover image was uploaded successfully.” is not triggered every time. I tested it and the confirmation only appears when you upload an image that is at least 1300px wide and 225px tall.
If the image is smaller, this message triggers:
“For better results, make sure to upload an image that is larger than 1300px wide, and 225px tall.”
Here is an example: https://imgur.com/KFzHL1b
Mushrooms (734px by 280px)
Pink Image (1350px by 350px)
Is there a way to change the text so if an image is smaller than the recommended size, it says:
“Your new cover image was uploaded successfully. For better results, make sure to upload an image that is larger than 1300px wide, and 225px tall.”
Thank you so much in advance for your help.
I am avoiding adding unncessary plugins and I am not too familar with poedit.
However, I was able to find where the warning text is located at:
// Set warning messages. $strings['cover_image_warnings'] = apply_filters( 'bp_attachments_cover_image_ui_warnings', array( 'dimensions' => sprintf( __( 'For better results, make sure to upload an image that is larger than %1$spx wide, and %2$spx tall.', 'buddypress' ), (int) $cover_dimensions['width'], (int) $cover_dimensions['height']
However, it is under
/bp-core/bp-core-attachments.phpso I am not going to change it as editing core files is not recommended.
Is there a way for me to change the text through filters in
bp-customs.php? If so, may you provide some guidance on how to do so? Users have said that not having a confirmation after uploading their cover image caused confusion and they were unaware that it was successfully uploaded until they returned back to their profile.
Thank you so much!
Poedit is the best option in my opinion.
You can use filter.
Here is the link
You must be logged in to reply to this topic.