- This topic has 3 replies, 2 voices, and was last updated 4 days, 4 hours ago by Andre Flores.
- January 7, 2021 at 5:36 pm #1056398Jindřich DlabajaParticipant
Hi, I’m using Hotel Booking plugin with Divi theme (with the integration installed). I have no problems with creating my own layouts with the blocks made for Divi BUT for unknown reasons I’m not able to delete the information generated automatically by the Hotel Booking plugin.
Everything I add on the back-end (property name, gallery, featured image) automatically spawns on the front-end of the single accommodation type page. It uses some of the preset stylings from Divi (buttons and fonts) but it spans over the whole width of the viewport (though the site is set to 1100 px). With the Divi builder on, it cannot be deleted and not even clicked on and I can’t figure out how to get rid of it.
Can someone help with the issue, please? Thanks.January 8, 2021 at 10:18 am #1056594Andre FloresModerator
I assume you are referring to default meta blocks displayed on single accommodation type pages. If so, you may remove them by overriding Hotel Booking actions in your theme functions.php file, e.g.:
remove_action( 'mphb_render_single_room_type_metas', array( '\MPHB\Views\SingleRoomTypeView', 'renderGallery' ), 10 );
The above code will remove the default gallery generated automatically by the plugin, simply add the code to your active theme functions.php file (it is recommended to use the child theme).
You will find a list of all actions for meta blocks in this article.
AndreJanuary 8, 2021 at 1:01 pm #1056679Jindřich DlabajaParticipant
Thanks for your response. I’ve stumbled upon the article before but ignored it when I’ve seen Elementor in the title. It works fine but it’s not a very elegant solution. Does Motopress consider adding a setting that allows users to use blank accommodation templates without changing the code (maybe as part of the Divi/Elementor integration?
JindrichJanuary 12, 2021 at 7:21 am #1057956Andre FloresModerator
I am glad that you were able to have it working. Yes, we do have such a feature request and I have added your up-vote to it as well. In case there are more similar requests from other users, we will consider adding this option to one of the plugin future updates. Anybody else who also needs this feature feel free to let us know by commenting this thread.
- You must be logged in to reply to this topic.