1. Home
  2. Knowledge Base
  3. Customizations
  4. CSS
  5. Fit Portrait Image in the Activity Feed Post

Fit Portrait Image in the Activity Feed Post

Introduction

BuddyBoss does not include a built-in option to automatically fit portrait images within the activity feed post layout. When users upload portrait photos, the preview may not fully fill the activity post area. Using a simple CSS adjustment, you can ensure portrait images display in a consistent, filled layout within the BuddyBoss activity feed.

Custom Workaround

  1. Go to BuddyBoss > Theme Options
  2. Under Custom Codes, enable CSS
  3. Append the following CSS:
.media-activity .bb-open-media-theatre img {

    width: 543px !important;

    height: 543px !important;

}

  1. Save changes

Note: Any modifications are considered custom work already. Please review our Support Policy for more details.

Troubleshooting and FAQs

Q: The image size did not change after adding the CSS

A: Clear your site cache, caching plugin, and CDN cache if applicable. Also confirm that CSS is enabled before saving

Q: Can I use a different size instead of 543px

A: Yes. Adjust the width and height values to match your preferred layout

Q: Will this affect landscape images or other media

A: This rule targets images displayed in the activity media theatre. Test the change to ensure it fits your design needs

Q: Does this apply to mobile devices

A: This CSS applies globally. You may add media queries if you want different behavior on mobile screens

Was this article helpful?

Related Articles

Subscribe to Our Newsletter

Stay In Touch

Subscribe to our Newsletter, and we’ll send you the latest news from BuddyBoss

  • This field is hidden when viewing the form
  • This field is for validation purposes and should be left unchanged.

To speak to our Agency consultant, fill in the form found at our Contact Page.

  • Get Started

    Enter your name and email address to get started with your project...

  • This field is for validation purposes and should be left unchanged.