Display accommodation amenities

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #739958
    Andrew Allerton
    Participant

    Hi again,

    By default, the shortcode [mphb_rooms] includes a section called Details that looks like:

    Guests: 4
    Amenities: list, of, things
    Size: x m^2
    Bed type: double

    I have been customising the template to fit with our site, and have found the hooks to display the title, excerpt, featured image etc, and I would like to have a bulleted list of amenities. I can get the whole Details section to display, but how can I get just the amenities? I’d also like to pull the number of guests elsewhere, would that hook be similar?

    Thanks in advance,

    David

    #741704
    J. Davis
    Keymaster

    Hello Andrew,

    Thanks for your questions. You can modify Details block by overriding the files within the following directory

    \wp-content\plugins\motopress-hotel-booking\templates\loop-room-type\attributes\

    Thus you can copy the files from that folder to the following directory:

    \wp-content\themes\your-theme-folder\hotel-booking\loop-room-type\attributes\

    and edit the files. It will let you keep the changes in case of plugin update.

    best regards,
    J. Davis

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