• Resolved hcst

    (@hcst)


    Hi There

    Great work. Is there a simple way to override these dimensions for the cover image in bp-custom.php or functions.php?

    public function change_cover_args( $args ) {
    		$args['theme_handle'] = 'stax-buddy-builder-bp';
    		$args['width']        = 1300;
    		$args['height']       = 900;
    
    		return $args;
    	}

    Best,

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support john

    (@johnweru)

    Hi there,

    Thanks for reaching out to us.

    In regards to your question here, please add the following code within the functions.php file of your theme:

     function change_cover_args( $args ) {
    		$args['theme_handle'] = 'stax-buddy-builder-bp';
    		$args['width']        = 1300;
    		$args['height']       = 900;
    
    		return $args;
    	}
    add_filter( 'bp_after_members_cover_image_settings_parse_args','change_cover_args', 10);

    You can then alter the width and height values within the code to those of your preference.

    I hope this helps.

    Kind Regards,

    John

    Thread Starter hcst

    (@hcst)

    Perfect – works a treat!

    Many thanks, John, and keep up the great work with the plugin.

    Best,

    • This reply was modified 2 years, 1 month ago by hcst.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Cover image size’ is closed to new replies.