Introduction
By default, there is no built-in option to center uploaded images on the activity page. However, you can achieve this by adding a small CSS snippet that aligns activity media to the center for a cleaner and more balanced layout.
Custom Workaround
Follow the steps below to center uploaded images on the activity page:
- Go to BuddyBoss > Theme Options
- Under Custom Codes, enable CSS
- Append the following code:
body.activity .bb-activity-media-elem.media-activity {
text-align: center;
display: block;
flex: auto !important;
}- Click Save changes
This will center uploaded images within activity posts.
Troubleshooting and FAQs
Q: The images are still not centered. What should I do?
A: Clear your site and browser cache, then refresh the activity page.
Q: Will this affect other pages or media types?
A: No. This CSS only targets uploaded media within the activity page.
Q: Does this work on mobile devices?
A: Yes. The rule applies across screen sizes unless overridden by additional custom CSS.