Remove the calendar from the Accommodation Type pages?

Free and Premium WordPress Plugins & Themes Forums WordPress Themes Villagio Remove the calendar from the Accommodation Type pages?

  • This topic has 1 reply, 2 voices, and was last updated 2 years ago by Mary Evans.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #949169
    Jerrel Inman
    Participant

    I know this may sound like a strange question, but I need to hide the calendars on the Accommodation Type pages.. Is there a way to do this in the code?

    #949816
    Mary Evans
    Participant

    Hello Jerrel,

    Add the line below to functions.php file of your theme (we recommend installing & activating the child theme and adding the line to its functions.php not to lose this change after theme update):

    remove_action( 'mphb_render_single_room_type_metas', array( '\MPHB\Views\SingleRoomTypeView', 'renderCalendar' ), 40 );

    Here is also a useful article with more details: How to edit accommodation type pages?

    Best Regards,
    M. Evans

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