Notifications
Clear all

Images and Videos NOT aligned in the center.

4 Posts
2 Users
0 Likes
1,249 Views
Eli
Posts: 99
 Eli
Customer
Topic starter
(@eli)
Member
Joined: 6 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: 5869
Admin
(@astgh)
Illustrious Member
Joined: 6 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: 99
 Eli
Customer
Topic starter
(@eli)
Member
Joined: 6 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: 6 years ago

Illustrious Member
Posts: 5869

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