Crop image doesnt work in profile buddypress
-
When changing the profile picture, I get a 1×1 pixel box to choose the area of the image that I want to show. I have Buddypress installed in the Avada theme.
Is there any solution to be able to choose the profile photo area correctly?
My Buddypress version is 6.1.0 and my Avada theme version is 6.2.3
Crop image part of the bp-core-cssjs.php file in the / wp-content / plugins / buddypress / bp-core folder
“// Get avatar full width and height.
$ full_height = bp_core_avatar_full_height ();
$ full_width = bp_core_avatar_full_width ();// Calculate Aspect Ratio.
if (! empty ($ full_height) && ($ full_width! = $ full_height)) {
$ aspect_ratio = $ full-width / full-height;
} else {
$ aspect_ratio = 1;
} ”Thank you very much
- You must be logged in to reply to this topic.