Gallery bevor the accommodation text

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1199445
    Felizia Katzer
    Participant

    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
    Felizia

    #1203150
    Andre Flores
    Moderator

    Hello 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,
    Andre

    #1203192
    Felizia Katzer
    Participant

    Hello 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
    Felizia

    #1204046
    Felizia Katzer
    Participant

    Hello 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
    Felizia

    #1205011
    Andre Flores
    Moderator

    Hello Felizia,

    Unfortunately, there is currently no such option in the plugin, it would require custom coding.

    Regards,
    Andre

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.