My LinkedIn Feed Widget uses the Slider layout. Sometimes the images from the LinkedIn Post are huge and sometimes the image is on top, with the post text underneath. Most times, the image is on the right, with the post text on the left (and I see the button to reverse that). How can I make sure it is always formatted that way - eliminate scenarios where the image is on top? And, also eliminate situations where the image is entirely too large?
Also, I think if I can better control the image size, the top/bottom issue will go away, as that only seems to happen when the image is taking up 100% of the slider. So, a setting for the slider that will constrain the image size to 50% of whatever the slider width is, would likely work, as long as the height is also constrained proportionally.
Hi there, @user29521 ![]()
The images that appear at the top are uploaded in a horizontal orientation on LinkedIn, while the ones on the right are in a vertical format:
I’m not sure if there’s anything we can do about it, but I’ll check with the devs and let you know as soon as I have an update ![]()
Thanks, that’s fine. I’m less concerned about the orientation and more about the size of the image - they are either clipping off the edges are expanding too large. Thanks, appreciate the prompt response.
Hi there, @user29521 ![]()
Please add this code to the Custom CSS field on the Style tab of your widget’s settings and let me know if it helped ![]()
.es-repost-preview-block {
padding: 2px !important;
}
.es-card-repost-preview-block-container {
display: flex;
flex-direction: row-reverse;
border: none;
}
@media (max-width: 768px) {
.es-card-repost-preview-block-container {
flex-direction: column-reverse;
}
}
Thanks, this helped quite a bit and ‘fixed’ about 90% of the problem I was seeing. There are still some where the images are being clipped - it’s not proportionally resizing, but I will try adding a max-height in with the max-width. This is great, thanks for the help and the prompt response.
Ah, I see this! I’ve asked the devs if it’s possible to fix image cropping and will get back to you tomorrow ![]()
Our devs will try to adjust the image with the custom script. I’ll get back to you once I have any news ![]()
Hi @user29521 ![]()
Thank you for waiting!
Please try to add this code to the Custom CSS field and let me know if you like the result ![]()
[class*='MediaContainer__Container-sc'] {
height: 100% !important;
}
Looks like this worked on all of the posts I spot-checked. Thank you!
Perfect, you’re always welcome ![]()
