Listing Info Block
Displays comprehensive information about a single listing on a template page. This block shows the listing's image, name, contact details, hours, description, and other key information in a structured layout.
Overview
The Listing Info block is designed for single listing template pages where you want to display detailed information about one specific listing. It automatically adapts its layout based on which content elements you choose to display, creating either a single-column or two-column layout with the listing image and information.
Block Features & Options
Display Toggles
- Show Image - Displays the listing's hero image (default: enabled)
- Show Name - Displays the listing name as a heading (default: enabled)
- Show Subtitle - Displays the listing subtitle (default: disabled)
- Show Short Description - Displays the listing's short description (default: disabled)
- Show Description - Displays the full description with markdown support (default: disabled)
- Show Hours - Displays operating hours (default: enabled)
- Show City - Displays the listing's city (default: disabled)
- Show Address - Displays the full address (default: enabled)
- Show Phone - Displays phone number with icon (default: disabled)
- Show Email - Displays email with mailto link (default: disabled)
- Show Website - Displays "Visit Website" button (default: enabled)
- Show Booking Link - Displays "Book Now" button (default: disabled)
- Show Socials - Displays social media links with icons (default: disabled)
- Show Tags - Displays listing tags as badges (default: disabled)
- Show Related Itineraries - Displays linked itineraries (default: disabled)
Layout Options
- Alignment - Controls block alignment (default: wide)
- Custom CSS Class - Adds custom CSS classes for styling
How it Works
The Listing Info block automatically detects which content elements are available and enabled, then creates an appropriate layout. When both image and content are shown, it creates a responsive two-column layout. When only one type of content is available, it uses a full-width single-column layout. The block only works on pages with Page Type set to "Listing".
How to Add & Configure
- Add the block to a template page with Page Type set to "Listing"
- Configure display options in the block sidebar to show/hide specific content elements
- Set alignment if needed (wide is recommended for this block)
- Add custom CSS classes if you need specific styling
Shortcode Usage
Basic Shortcode
[tourismo-listing-info]
Available Options
| Option | Type | Default | Description |
|---|---|---|---|
show_image |
boolean | true |
Show the listing's hero image |
show_name |
boolean | true |
Show the listing name |
show_subtitle |
boolean | false |
Show the listing subtitle |
show_short_description |
boolean | false |
Show the short description |
show_description |
boolean | false |
Show the full description |
show_hours |
boolean | true |
Show operating hours |
show_city |
boolean | false |
Show the listing's city |
show_address |
boolean | true |
Show the full address |
show_phone |
boolean | false |
Show phone number |
show_email |
boolean | false |
Show email address |
show_website |
boolean | true |
Show website button |
show_booking_link |
boolean | false |
Show booking button |
show_socials |
boolean | false |
Show social media links |
show_tags |
boolean | false |
Show listing tags |
show_related_itineraries |
boolean | false |
Show related itineraries |
align |
string | wide |
Block alignment |
class_name |
string | "" |
Custom CSS classes |
Examples
Show basic listing information:
[listing-info show_name="true" show_image="true" show_address="true" show_website="true"]
Show comprehensive listing details:
[listing-info show_name="true" show_image="true" show_subtitle="true" show_description="true" show_hours="true" show_phone="true" show_email="true" show_website="true" show_booking_link="true" show_socials="true" show_tags="true"]
Show only contact information:
[listing-info show_image="false" show_name="true" show_address="true" show_phone="true" show_email="true" show_website="true"]
Content Displayed
The Listing Info block displays content in a responsive layout:
- Image Column (when enabled): Shows the listing's hero image
- Content Column: Shows all enabled information elements including:
- Listing name and subtitle
- Descriptions (short and full)
- Operating hours in a structured list
- Location information (city and address)
- Contact details (phone, email)
- Action buttons (website, booking)
- Social media links with icons
- Tags displayed as badges
- Related itineraries list
The layout automatically adapts to show either a two-column layout (image + content) or single-column layout depending on which elements are enabled.
Related Blocks
- Title Block - For displaying just the listing name
- Description Block - For displaying just the listing description
- Listing Website Button Block - For displaying just the website button
- Listing Buttons Block - For displaying multiple action buttons