Skip Navigation

[Resolved] Images in Toolset view are no longer cropped

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 2 replies, has 2 voices.

Last updated by jochenV 1 year, 1 month ago.

Assisted by: Waqar.

Author
Posts
#2653739

Previously the images in the Toolset View on the homepage were all the same size and nicely side by side, but that is no longer the case. I don't know if it's because of an update.

I have noticed my former collegue who designed this website used a Toolset view.
Then he added some custom CSS with this in it:

.ttp-grid-beeld img {
width:100%;
height:80px;
object-fit:cover;
}

What could have changed so that the images aren't how they were supposed to be?

#2653937

Hi,

Thank you for contacting us and I'd be happy to assist.

I've checked the page's source code and the image thumbnails are correctly being generated in the specified sizes.

Since, the originally uploaded images have variable image dimensions ( ratio of widths and heights ), the generated thumbnails also have different widths and heights, as expected. That is where the custom CSS code from your colleague comes in handy, to make them look in uniform sizes.

I don't find this custom CSS code included in the page so it only seems to be the missing link. You can include this code in the view's 'CSS editor' and it should work as before.

regards,
Waqar

#2653973

Hi Waqar,

Thanks for the quick help.
My colleague used another custom CSS plugin to add this code. The full CSS code looks like this:

.ttp-grid-box {

}
.ttp-grid-beeld {

}

.ttp-grid-jaar {
font-size:12px;
}

.ttp-grid-meta {
font-size:12px;
}

.ttp-grid-beeld img {
width:100%;
height:80px;
object-fit:cover;
}
.ttp-grid-titellink {
text-align:left;
font-size:16px;
font-weight:700;
}

.ttp-grid-titellink a {
color: #000;
}

.ttp-grid-leesmeer {
font-size:13px;
text-align:left;
margin-top:5px;
text-decoration:underline;
}

.ttp-grid-leesmeer a {

}

.ttp-grid-leesmeer a:hover {
color:#000;
}

Can I paste this completely under the CSS editor of this view?

#2653989

Hi,

I tried it with a test view and it worked! So now I changed the view on the homepage.
Thanks for the assistance!