Skip Navigation

[Resolved] Featured Image Thumbnail Display Unstable

This support ticket is created 3 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.

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 4 replies, has 2 voices.

Last updated by CharlesB2907 3 years, 3 months ago.

Assisted by: Waqar.

Author
Posts
#2180483
Screenshot_29.jpg
Screenshot_27.jpg
Screenshot_28.jpg

Hi,

Custom CSS was added to set the Virtual height (VH) at 65% for all single post thumbnail images.

It worked when we first created the post view but for some reason the feature images longer respond to the custom code.

The objective is to limited the virtual height of the single post image so the visitor can view the item in full view without the need to scroll.

Can you help me determine where I went wrong?

#2180635

Additional information:

The single item view displayed correctly prior to changing the sub-site installation title, in our multi-site network from "Demo" to "Sample Portfolio".

Before we changed the title, I copied the site where the single item view displays correctly: hidden link

But the source sub-site where we changed the title apparently no longer responds Additional CSS that was added to limit the featured image vertical height: hidden link

Could changing the name have caused this and how can you help me resolve it?

Thank you.

#2180693

Hi,

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

The custom CSS code from your screenshot, has no effect, on the single artwork pages from both websites.


.single-post .post-thumb-img-content.post-thumb img{
	height: 65vh;
	object-fit: cover;
}

On the website where the image is showing correctly, it is because the image's thumbnail size is small (293 × 440 px) and it is not being controlled by that custom CSS code.

To control the image's height, through the CSS code, you can replace it with:


.ast-single-post .entry-content .wp-block-image img {
    height: 65vh;
    object-fit: cover;
}

regards,
Waqar

#2181411

I appreciate your pointing this out.

Thank you.

#2181413

My issue is resolved now. Thank you!