Front Page

Set up the front page

Follow these steps to set up your front page:

  1. Go to Pages → Add New and add a page (if you use sample data, find Welcome to Palmeria Hotel – Front Page in Pages and customize it without creating a new page; in this case, ignore the remaining 2-7 steps).
    image23
  2. Label it appropriately, e.g. home page, front page.
  3. In the Page Attributes in the Gutenberg right-hand side menu select Front Page template (no parent).
    image13
  4. Publish your page.
  5. Go to Settings → Reading: set “Front page displays” to Static Page.
  6. In Settings → Reading set Front Page to the one you created during the step #2.
    image6
  7. Save changes.

Customize the front page

If you are using sample data, all pages, including the front page, should already be installed.

1. Open the front page via Gutenberg editor to make the changes.

The very upper part of the theme (theme header) consists of three elements you can update in Gutenberg:

  • a basic page title (heading)
    image10
  • a page excerpt (intro text)
  • background image (featured image of the front page).

image19

2. If want to enable real-time search through all rentals, you can customize the front page search form (added automatically with sample data).

To customize this form, go to Appearance → Widgets → Front Page sidebar → Search Availability on your WordPress dashboard (here you can pre-populate the number of adults and children).

image11

To customize the fields and look of the form, go to Accommodation → Settings → Search options and apply the preferable settings:

  • the max number of adults and children (recommended: the entire number of people your property / properties can accommodate)
  • state the age of children (it’ll be visible in the form)

image2

  • set up whether to show both adults and children fields, only adults, guests or completely hide the fields related to the number of people.
  • Change a calendar color scheme.

image3

Note: the Pro plugin version allows to add multiple custom fields to search availability form (enable travelers to use them as advanced sorting options).

3. The rest of the blocks you see on the front page are “child” pages of the “parent” Palmeria front page. To edit them individually, simply go the needed block and open it in the Gutenberg editor.

image26

For example, let’s take “The story of Palemeria” block: the text can be added via a standard Gutenberg paragraph block, where the hero image is a featured image of the post.

The images you use as featured for the list of accommodation will be flexible and grow to support the size of the content they hold. In the demo, we are using images of the same size.

image20

Using Gutenberg blocks, you can add any type of content to display on the frontend of your WordPress website – galleries, images, text, videos, etc.

image16

Don’t forget to use a page featured image as a hero image of each section.

To embed the listing of your properties, we employ the “Shortcode” Gutenberg block with custom shortcode [mhb_rooms] parameters:

image7

[mphb_rooms view_button=”false” book_button=”false” gallery=”false” details=”false” excerpt=”false”]

This allows to display rooms in a clean way with just images, titles and prices. If you want to display only certain rooms, you need to include their IDs.

image15

You can also customize the layout of your rooms directory: (classic or masonry) for the default list and search results. Go to WordPress Customizer via Appearance → Customize → Theme Options → Booking Options.

  • Classic (list)

image25

  • Masonry

image5

Related Topics