Skip Navigation

[Gelöst] Featured Image Thumbnail Display Unstable

This support ticket is created vor 3 Jahren, 2 Monaten. 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.

Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.

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)

Dieses Thema enthält 4 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von CharlesB2907 vor 3 Jahren, 2 Monaten.

Assistiert von: Waqar.

Author
Artikel
#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: versteckter 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: versteckter 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!