Notifications
Clear all

Limited Support

Our support team is currently on holiday from December 25, 2025 to January 7, 2026, and replies may be delayed during this period.

We appreciate your patience and understanding while our team is away. Thank you for being part of the gVectors community!

Merry Christmas and Happy Holidays! 🎄

Images and Videos NOT aligned in the center.

4 Posts
2 Users
0 Reactions
2,738 Views
Eli
Posts: 101
 Eli
Customer
Topic starter
(@eli)
Member
Joined: 8 years ago

Hello there,

We have an issue where images are never centered in the cross-posted topics, an example can be seen at:

https://deepinenespañol.org/comunidad/noticias-de-portada/presentamos-nuestro-repositorio-deepines-3-0/

The first image on the post is supposed to be centered, doesn't matter if you center it with the forum editor options, it will still show up aligned to the left. it happens with every image or video in cross-posted topics.

Is there a code I could use to correct this?

Any help would be appreciated.


3 Replies
Astghik
Posts: 6580
Admin
(@astgh)
Illustrious Member
Joined: 8 years ago

Hi @eli,

Please add the following CSS code in "Custom CSS code" textarea located in Dashboard > Forums > Settings > Styles admin page, save it, delete all caches and check again. The CSS conflict should be solved. 

.wp-block-image .aligncenter {
margin-left: auto !important;
margin-right: auto !important;
}

Reply
Eli
Posts: 101
 Eli
Customer
Topic starter
(@eli)
Member
Joined: 8 years ago

That worked for images, thanks @astghik, however videos are still aligned to the left side 🙁

I wish I could also center videos.


Reply
1 Reply
Astghik
Admin
(@astgh)
Joined: 8 years ago

Illustrious Member
Posts: 6580

Hello @eli,

Please leave some example URL to allow us to check and provide CSS solution for videos as well. 


Reply
Share:
Scroll to top