PDF Exposé Button Block
With the PDF exposé button Gutenberg block PLUS (immomakler/single-pdf-button) you place a button in the detail view that lets prospects download the property’s PDF exposé. The button links to the PDF version of the property currently being viewed.
Requirements
Section titled “Requirements”- WordPress with the Gutenberg editor
- WP-ImmoMakler Plus edition. In the Basic edition, the block shows a notice in the editor and nothing on the frontend.
- A property in context: Place the block in a Site Editor template for the Property post type or on a template page — see Create Single Page.
Inserting the block
Section titled “Inserting the block”-
Open a template or template page
Open the template for the Property post type in the Site Editor (requires a block theme) or the template page on which the detail view of your properties is built.
-
Insert the block
Click the + icon and search for PDF exposé button, or navigate to the Widgets category. Insert the block.
-
Style the button
In the sidebar, adjust the width, alignment, and label. Set the colors, font size, padding, and border in the Design tab.
-
Save
On the property page, the button leads to the PDF exposé of the respective property.
Options
Section titled “Options”| Panel | Option | Default | Description |
|---|---|---|---|
| Layout | Width | automatic | 25 %, 50 %, 75 %, or 100 % of the available width. Clicking the selected value again restores the automatic width. |
| Layout | Order | Left | Position of the button: Left, Center, or Right. |
| Button | Labeling | Download exposé | Text on the button. |
| Button | Open in new tab | Yes | Opens the PDF in a new browser tab so the detail page stays open. |
The Design tab offers the standard WordPress options for text and background color, font size and text alignment, padding and margin, and border (color, width, style, and corner radius).
You might also be interested in
Section titled “You might also be interested in”- PDF Expose / PDF Print View — set the content, header, and cache of the PDF exposé
- Contact Form — output a property’s inquiry form
- Dynamic Data (Block Bindings) — connect a standard Button block to links from the property data
- Create Single Page — build the detail view in the Site Editor or on a template page