Notifications
Clear all

[Solved] Embeded image size ratio

4 Posts
2 Users
1 Reactions
141 Views
Posts: 23
Topic starter
(@rjwhuang)
Eminent Member
Joined: 3 years ago

We use Cross Posting, and notice if the image ratio is 4:3 it will look fine on the forum post.

However, if the image ratio is 3:4 for example, it will force to show as 4:3, and the image looks weird.

 

Here is the example:

https://tripwinego.com/cn/balkans-tour/

https://tripwinego.com/community/topicid/2240/

 

Please help.

 

3 Replies
Astghik
Posts: 6180
Admin
(@astgh)
Illustrious Member
Joined: 7 years ago

Hi,

In this case, you should write custom CSS to fix the issue. All styles are being cross-posted, and in your case, the result doesn’t look correct. The cross-posting add-on cannot remove the styles when it cross-posts images.

1 Reply
(@rjwhuang)
Joined: 3 years ago

Eminent Member
Posts: 23

@astgh can you please give an example? as long as the image size ratio is retained, it will be fine.

Posts: 23
Topic starter
(@rjwhuang)
Eminent Member
Joined: 3 years ago

never mind, found it from the old post, clear cache and fixed the issue. Thanks.

#wpforo #wpforo-wrap .wpforo-post .wpforo-post-content img, 
#wpforo #wpforo-wrap .wpforo-revision-body img {
    max-height: none !important;
}
Share:
Scroll to top