Free and Premium WordPress Plugins & Themes Forums WordPress Plugins Hotel Booking Gallery bevor the accommodation text
- This topic has 4 replies, 2 voices, and was last updated 2 years, 11 months ago by Andre Flores.
- AuthorPosts
- October 13, 2021 at 11:47 am #1199445Felizia KatzerParticipant
Hello,
is it possible to place the Featured Gallery upwords the accommodation text?
I will start the page with the gallery.
I used the remove and add action but I saw that 10 is the first position under the accommodation text.
Featured gallery:
add_action( ‘mphb_render_single_room_type_metas’, array( ‘\MPHB\Views\SingleRoomTypeView’,
‘renderGallery’ ), 10 );Thank you
FeliziaOctober 21, 2021 at 6:40 am #1203150Andre FloresModeratorHello Felizia,
There is no option by default to achieve this, however, as an option you may add it a shortcode. Add the following code to your child theme functions.php file:
function mphb_property_gallery_shortcode() { if ( is_singular( 'mphb_room_type' ) ) { if ( mphb_tmpl_has_room_type_gallery() ) : do_action( 'mphb_render_loop_room_type_before_gallery' ); mphb_tmpl_the_room_type_flexslider_gallery(); do_action( 'mphb_render_loop_room_type_after_gallery' ); endif; } } add_shortcode('mphb_property_gallery', 'mphb_property_gallery_shortcode');
After that add the following shortcode right before the accommodation type description:
[mphb_property_gallery]
Regards,
AndreOctober 21, 2021 at 8:42 am #1203192Felizia KatzerParticipantHello Andre,
thank you for the gallery code. But now the gallery is a slideshow and not every image on its own to klick on it and then start a gallery slideshow.
Thank you
FeliziaOctober 24, 2021 at 1:44 am #1204046Felizia KatzerParticipantHello Andre,
is there a generell shortcode for the standard gallery, that I can use fot example to integrate it with elementor into the site?
Thank you
FeliziaOctober 26, 2021 at 6:27 am #1205011Andre FloresModeratorHello Felizia,
Unfortunately, there is currently no such option in the plugin, it would require custom coding.
Regards,
Andre - AuthorPosts
- You must be logged in to reply to this topic.