Images and Videos NOT aligned in the center.  


Eli
Posts: 35
 Eli
Customer
(@eli)
Member
Joined: 1 year 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.

Topic Tags
3 Replies
Astghik
Posts: 2668
Admin
(@astghik)
Support Team
Joined: 2 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: 35
 Eli
Customer
(@eli)
Member
Joined: 1 year 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
(@astghik)
Joined: 2 years ago

Support Team
Posts: 2668

Hello @eli,

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

Reply
Share: