• Resolved charlieab

    (@charlieab)


    I use Divi theme, how can I customize the accommodation page which is generating by Hotel Booking Lite Plugin?

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support dimned

    (@dimned)

    Hi @charlieab,
    You may hide the system generated meta blocks (gallery, details, calendar. gallery) by using the actions from this article https://support.motopress.com/hc/en-us/articles/360013539291

    You may copy the lines below to the functions.php file of the child theme:

    remove_action( 'mphb_render_single_room_type_metas', array( '\MPHB\Views\SingleRoomTypeView','renderGallery' ), 10 );
    
    remove_action( 'mphb_render_single_room_type_metas', array( '\MPHB\Views\SingleRoomTypeView','renderAttributes' ), 20 );
    
    remove_action( 'mphb_render_single_room_type_metas', array( '\MPHB\Views\SingleRoomTypeView','renderDefaultOrForDatesPrice' ), 30 );
    
    remove_action( 'mphb_render_single_room_type_metas', array( '\MPHB\Views\SingleRoomTypeView','renderCalendar' ), 40 );
    
    remove_action( 'mphb_render_single_room_type_metas', array( '\MPHB\Views\SingleRoomTypeView', 'renderReservationForm' ), 50 );

    Then you will be able to edit the whole page using Divi Builder.

    Thread Starter charlieab

    (@charlieab)

    Thank you Dmytro! I’m wondering if it’s possible to hide title and feature image as well?

    Thank you!

    Plugin Support dimned

    (@dimned)

    Hi @charlieab,
    I’d recommend creating a new layout for accommodation type by duplicating the single.php file of the theme and re-naming it into single-mphb_room_type.php Then you might remove the featured image and title by editing this file.
    As an easy solution, you may hide them with CSS. You may provide a link to your site if you need assistance with this.

    Plugin Support dimned

    (@dimned)

    We could not hear anything from you for a while so we close the topic. Feel free to submit a new topic if you have any further questions.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to customize accommodation page’ is closed to new replies.