Skip to:
Content
Pages
Categories
Search
Top
Bottom

Crop image doesnt work in profile buddypress


  • eduardof
    Participant

    @eduardof

    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

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