Free and Premium WordPress Plugins & Themes Forums WordPress Plugins Hotel Booking Change Photo Gallery on property page, from grid to slideshow
- This topic has 10 replies, 2 voices, and was last updated 4 years ago by Andre Flores.
- AuthorPosts
- May 11, 2018 at 8:04 am #677159Lok CheungParticipant
Hi,
I set up photo gallery for each accommodation type, when using search function to list rooms, every photo gallery is showing in a nice way, that is a main photo window on top and a thumbnail photo index window on bottom, both windows can slide left and right so I can put as many as photos into a photo gallery. But when going onto the “View Detail” page or pressing “continue reading”, the same photo gallery will be shown in a different way, i.e. tiled mosaic or thumbnail grid, and ALL photos will be listed out! Is it possible to use the main-and-index window style to show photos for all situations? Thanks.
Regards,
-LokMay 11, 2018 at 1:04 pm #677276Stacy LindKeymasterHi Lok,
Copy the file gallery.php from
wp-content\plugins\motopress-hotel-booking\templates\single-room-type\
and paste it to
wp-content\themes\your_theme\hotel-booking\single-room-type\
(you would need to create the folders ‘hotel-booking\single-room-type’ within your theme’s folder).
Then open the file
wp-content\themes\your_theme\hotel-booking\single-room-type\gallery.php and substitute this line:
<?php mphb_tmpl_the_single_room_type_gallery(); ?>
with the following:
<?php mphb_tmpl_the_room_type_flexslider_gallery(); ?>
This will display the slider gallery on the accommodation pages.If you do not feel comfortable editing the code, we could do it for you with the extended support offer.
May 14, 2018 at 1:46 am #677759Lok CheungParticipantThanks, Stacy. It works basically as expected except the “< Previous” and “> Next” slider prompts are shown right under the main photo area and the thumbnail index area. They should be shown on both sides inside the photo areas, right? Is it relating to the style sheet or so? Thanks.
Regards,
-LokMay 15, 2018 at 3:17 pm #678509J. DavisKeymasterHi Lok,
Yes, it requires to adjust style of link so you can ty using the style below to remove underline:
.flex-direction-nav a{ text-decoration:none; }
best regards,
JohnMay 16, 2018 at 1:30 am #678663Lok CheungParticipantThanks, John. I put your code into the “Additional CSS” section but it doesn’t take any effect. Any further suggestion?
You could also check out this link https://mpcottages.com/accommodation/the-starfish/. Thanks.
Regards,
-LokMay 16, 2018 at 8:39 am #678762J. DavisKeymasterHi Lok,
In order to apply the proper styles you should also replace the lines below in wp-content\themes\your_theme\hotel-booking\single-room-type\gallery.php file
do_action( 'mphb_render_single_room_type_before_gallery' );
with
do_action( 'mphb_render_loop_room_type_before_gallery' );
and
do_action( 'mphb_render_single_room_type_after_gallery' );
with
do_action( 'mphb_render_loop_room_type_after_gallery' );
best regards,
JohnMay 16, 2018 at 9:52 am #678792Lok CheungParticipantIt works perfectly! Many thanks, John.
Regards,
-LokNovember 22, 2020 at 1:24 pm #1033481Giovanni Luigi MasciaParticipantFor me this is almost working well, but the images are very small, is it possible to change to full size? You can check here:
November 24, 2020 at 11:36 am #1034434Andre FloresModeratorHello Mathijs,
I have checked your page and looks like you have already managed to make the image larger. Let me know if you need further assistance.
Regards,
AndreNovember 24, 2020 at 1:10 pm #1034493Giovanni Luigi MasciaParticipantThe image should become larger in width. Is this possible?
November 25, 2020 at 8:33 am #1035253Andre FloresModeratorHello Mathijs,
Kindly submit your request to our Help Desk providing temporary access to your WordPress dashboard, so we take a closer look at the issue.
Regards,
Andre - AuthorPosts
- You must be logged in to reply to this topic.