Free and Premium WordPress Plugins & Themes Forums WordPress Plugins Hotel Booking Issue with display of Featured Image
- This topic has 3 replies, 2 voices, and was last updated 11 months, 1 week ago by J. Davis.
- AuthorPosts
- January 10, 2024 at 11:05 pm #1555183Everette MillsParticipant
I am having an issue with featured image display on my website related to the hotel booking plugin. The site is fully up to date with WordPress and the plugin.
The featured image is present in the html but is not visible on the site. I thought it was do to a lazy load/caching issue, but all of those have been turned off and I am still unable to have them visible.
See screenshot
You can see the issue at this url
January 11, 2024 at 9:04 am #1555537Everette MillsParticipantContinuing work on this issue with a fresh set of eyes today and I am seeing that the height of the box is set to zero for the img tag. Still havent figured out why, but digging down.
January 11, 2024 at 12:39 pm #1555671Everette MillsParticipantIt appears the issues is related to a conflict between Kadence and the Hotel booking plugin that I still dont fully understand what is happening.
When I add this code to the page custom css it fixe the issue, but I am still working to try to fully understand what this is doing in other places.
.wp-site-blocks .post-thumbnail:not(.kadence-thumbnail-ratio-inherit) img { height: auto; }
January 19, 2024 at 4:58 am #1559603J. DavisKeymasterHi,
I’ve inspected the styles and found that your theme adds a style of height:0 for the class .post-thumbnail which is used in the hotel booking plugin too. You can also override it by using this style:
.mphb_sc_search_results-wrapper .post-thumbnail { height:auto; padding-bottom:inherit; }
- AuthorPosts
- You must be logged in to reply to this topic.