Free and Premium WordPress Plugins & Themes Forums WordPress Plugins Hotel Booking Accommodation Type Gallery shows images in one column
- This topic has 9 replies, 2 voices, and was last updated 1 week, 3 days ago by
Michal.
- AuthorPosts
- December 16, 2025 at 3:08 am #1813941
Michal
ParticipantHello,
I’m using the MotoPress Hotel Booking plugin and recently created a custom accommodation template based on this tutorial:
https://support.motopress.com/hc/en-us/articles/38715993158292-Create-a-custom-layout-of-the-Accommodation-Page-using-the-Block-EditorHowever, I’ve noticed an issue with the Accommodation Type Gallery: the images are always displayed one under another in a single column, instead of forming a proper gallery/grid.
What’s important is that this incorrect layout was happening even before I started using the custom template. So the problem does not seem to be caused by the custom template itself.
I also found and tried the solution mentioned here (2nd post):
Change Photo Gallery on property page, from grid to slideshow
But the gallery still shows images stacked vertically. Screenshot:
https://prnt.sc/AFFveBNQFwuyInterestingly, the gallery displays correctly on the search results pages, so the issue appears only on individual accommodation type pages.
Could you please advise how to fix this gallery layout?
Is there any CSS, template override, or setting needed to ensure the Accommodation Type Gallery shows images in a grid instead of a single column?Thank you very much for your assistance!
December 16, 2025 at 6:34 am #1815547J. Davis
KeymasterHi, Perhaps the theme styles override the style of the gallery. You may provide the URL to your site so I can take a closer look at it, inspect the styles, and send you custom CSS styles to override it again.
December 19, 2025 at 1:53 am #1816049Michal
ParticipantThis reply has been marked as private.December 22, 2025 at 4:52 am #1816319J. Davis
KeymasterHi Michal,
Thanks for your reply. I’ve found that the style of the Blocksy theme overrides the display parameter from block-inline to block. You can add the style below to Appearance > Customize > Additional CSS to override it again:.mphb-room-type-gallery-wrapper.mphb-single-room-type-gallery-wrapper .gallery-item { display: inline-block; padding: 0.5em ; }December 28, 2025 at 1:36 pm #1817120Michal
ParticipantHello, thanks a lot! This helped.
December 28, 2025 at 2:38 pm #1817121Michal
ParticipantThis reply has been marked as private.December 30, 2025 at 1:49 pm #1817456J. Davis
KeymasterHi Michal,
In the search results view, you can see the gallery, which is built of the bigger preview slider and thumbnails underneath. It is not a featured image + gallery. This type of gallery is used in the listing layouts. As for the single Accommodation Type layout, you can add a static featured image and a gallery (grid or slideshow). You can disable the link for the Accommodation Type Featured Image block to prevent reloading the page on click.December 31, 2025 at 2:49 am #1817538Michal
ParticipantHello,
thank you, I understand.
But is it somehow possible to use the same preview slider with thumbnails (the one used in the search results layout) on the Single Accommodation Type layout as well?
I would like to use that same gallery style instead of using a static featured image + separate gallery block.Thank you for your help.
January 9, 2026 at 12:32 pm #1819260J. Davis
KeymasterHi Michal, as a workaround, you will need to create separate templates for each accommodation type and add the Single Accommodation Type block/widget. You will need to hide everything (title, excerpt, buttons, details, price) except the gallery.
January 19, 2026 at 1:59 pm #1821404Michal
ParticipantOK, that would be too complicated.
One more question:
Within the “Accommodation Type Gallery” block, is it possible to display the gallery as a slider and still allow images to open in a lightbox?Currently, when Display as Slider is enabled, it’s not possible to click on thumbnails to view images in full size. On the other hand, the Lightbox option becomes disabled (greyed out) when the slider is enabled.
Is there any workaround or recommended solution for this?
Thanks.
- AuthorPosts
- You must be logged in to reply to this topic.