• Resolved hollowamethyst

    (@hollowamethyst)


    I’m trying out the plugin (free version) and I was wondering if there’s a way to change the size of the cover, especially the height, I found in the documentation how to change the avatar size but couldnt find anything about the cover size. Or do I need the premium version for that?

    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Youzify

    (@kainelabsteam)

    Hello @hollowamethyst,

    Thanks for using our plugin!

    Actually, we created a custom snippet for our clients to use, we usually don’t share snippets here as the support here is pretty limited but no worries since this is your first request, here’s the link of the snippet below, please add it to the file “bp-custom.php” in the path “wp-content/plugins” and change the sizes 1350 & 350 to your desired dimensions:

    <?php
    
    /**
     * Change Cover Image Size.
     */
    function yzc_attachments_get_cover_image_dimensions( $wh ) {
        return array( 'width' => 1350, 'height' => 350 );
    }
    
    add_filter( 'bp_attachments_get_cover_image_dimensions', 'yzc_attachments_get_cover_image_dimensions', 99 );

    Ps: if you didn’t find the file “bp-custom.php”, just create a new one.​

    Let me know if this worked fine for you 🙂

    You are welcome.

    Best Regards, KaineLabs Team

    Thread Starter hollowamethyst

    (@hollowamethyst)

    That worked, thank you for the quick reply

    Plugin Support Youzify

    (@kainelabsteam)

    Thanks, @hollowamethyst for letting me know!

    Happy it worked for you 🙂

    Stay safe and have a great day!

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

The topic ‘User profile cover size’ is closed to new replies.