Free and Premium WordPress Plugins & Themes Forums WordPress Themes Booklium Featured image in Rooms detail page
- This topic has 3 replies, 2 voices, and was last updated 4 years, 7 months ago by Andre Flores.
- AuthorPosts
- April 27, 2020 at 3:12 pm #947237alessandro cirinaParticipant
is possible to restore the featured image in the accomodation page details? Now is possible to see only if there isn’t images in gallery accomodation. I would like display ever one big image for the specific room. tnx
April 28, 2020 at 2:45 pm #947703Andre FloresModeratorHello, Alessandro!
You may simply remove gallery in Accommodation Type editing page and set the Featured Image: https://prnt.sc/s7g493. Once it is done, the featured image will be displayed instead of the gallery.
Regards,
AndreApril 28, 2020 at 2:57 pm #947706alessandro cirinaParticipantthis functionality was already known. I’d like both. both featured image and gallery together.
April 29, 2020 at 3:37 pm #948113Andre FloresModeratorHi, Alessandro!
There is a condition in theme files to load gallery only, if it exists in accommodation type settings, otherwise the featured image should be loaded. The code is located in content-mphb_room_type.php file under /wp-content/themes/booklium/template-parts/ directory:
<?php if ( $has_gallery ) { do_action('booklium_render_single_room_gallery'); } else { booklium_post_thumbnail( 'booklium-large' ); } ?>
You may overwrite it by adding the following code to the child theme:
<?php if ( $has_gallery ) { do_action('booklium_render_single_room_gallery'); booklium_post_thumbnail( 'booklium-large' ); } ?>
Best regards,
Andre - AuthorPosts
- You must be logged in to reply to this topic.