| 开发者 | erphome |
|---|---|
| 更新时间 | 2026年9月2日 22:59 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[erphome_widget], which works anywhere shortcodes do:
posts, pages, text widgets, page builders.[erphome_widget] into it.erphome_booking_start event into dataLayer, with the dates, number of
nights and guest count. Pick it up in Google Tag Manager or GA4 and you will
see how many visitors actually start a booking, not just how many loaded the
page.
Speaks your visitors' language
The widget follows the language of your WordPress site, so an English site
gets an English widget and a Polish site gets a Polish one. Polish and
English are both built in.
Running a bilingual site? Set the language per embed:
[erphome_widget lang="en"]
The same control sits in the block sidebar and in the classic widget. The
apartment's own content (title, description) follows whichever languages you
enabled for it in the erphome.pl panel, so an owner who translated the
listing gets translated content here too.
Your calendars stay in one place
If your erphome.pl account syncs availability from Airbnb or Booking.com
over iCal, the widget shows that same combined, up-to-date availability.
Sync is configured once, in erphome.pl, and nothing about it needs repeating
in WordPress.
Several apartments?
The apt attribute embeds a different apartment than the default one from
Settings → ErpHome, so each apartment can have its own page:
[erphome_widget apt="dom-nad-morzem"]
Available on the block and the sidebar widget too.
Why a plugin instead of pasting a script
The erphome.pl panel also gives you a <script> snippet for any website.
On WordPress that snippet has a habit of disappearing: the block editor
strips <script> from HTML blocks in some setups, caching and minification
plugins defer external scripts until the widget arrives late or not at all,
and security plugins block third-party scripts inside post content.
This plugin renders a plain <iframe> server-side instead. It has a known
width and height before the page paints, so nothing jumps around while
loading, and there is no external JavaScript for another plugin to break.
[erphome_widget] to a post or page, or insert the "ErpHome —
Booking Widget" block in the editor.Yes. The plugin displays the widget from an existing account. It does not create one, and it does not replace the erphome.pl panel.
Yes. The widget follows your WordPress site language, with Polish and
English built in, and the lang attribute overrides it per embed. The
erphome.pl panel and the full reservation page are available in English as
well.
Yes, if your erphome.pl account already syncs availability from those platforms over iCal. The widget always shows the same availability as your erphome.pl booking page.
No. The widget loads in a separate <iframe> with loading="lazy", so it
does not block the rest of the page from rendering, and it adds no
JavaScript or CSS to your theme.
In the widget the guest picks dates and guest count and gets an instant answer on whether the dates are free. The button then opens your full erphome.pl reservation page in a new tab, with those choices already filled in. The booking form, payments and confirmation stay outside the iframe, which is what keeps payment gateways and sessions working reliably.
Yes. Use the apt attribute on the shortcode, block or widget to pick a
different apartment than the plugin default on each page.
In the erphome.pl panel: Settings → Calendars, section "Widget rezerwacji na Twoją stronę". Pasting the whole snippet works as well as pasting just the link.
Width, yes: in Settings → ErpHome for the default, or per embed with the
width attribute. Height is normally handled for you, because the widget
reports how tall it is. If you switch that off, height applies as a fixed
value:
[erphome_widget width="360" height="450"]
It should not. The plugin publishes one extra VacationRental block; SEO
plugins publish their own page and site markup and the two describe different
things. If your SEO plugin already publishes apartment or lodging data, leave
this option off rather than having two sources say the same thing.
The dropdown and the structured data read your listing from erphome.pl and cache it for six hours, so it is roughly four requests a day, from your server, not from your visitors. A failed call is cached briefly too, so a temporary outage cannot make every page wait. With both features off, your server never calls erphome.pl.
Switch on height fitting and the plugin pushes an erphome_booking_start
event to dataLayer when a guest presses the booking button, carrying
erphome_apartment, erphome_check_in, erphome_check_out,
erphome_nights and erphome_guests. Add a Google Tag Manager trigger on
that event name.
erphome_booking_start event to dataLayer for Google Tag Manager and GA4.lang attribute on the shortcode, block and sidebar widget for bilingual sites.