YOOtheme Pro
Smart Business Hours works with YOOtheme Pro in three ways. Pick the one that fits the page:
- As a module in YOOtheme's Module element or in a template position.
- As a native builder element, Business Hours, styled by your YOOtheme style.
- As a dynamic content source, to fill any YOOtheme element with the status, today's hours or your contact details.
All three read the hours from a Smart Business Hours module. You edit the hours, special days, messages and business details once, in that module's Studio.
Before you start
- YOOtheme Pro 4 or 5.
- At least one published Smart Business Hours module. It can stay in no position: the element and the source only read it.
- The plugin System - NextSoftware Smart Modules enabled. The installer enables it for you.
Use the module
Add YOOtheme's Module element and choose your Smart Business Hours module. Every layout works there, in light and in dark (inverse) sections. The module keeps the design set in its Studio.
Use the Business Hours element
- In the page builder, open the element library and choose Business Hours in the NextSoftware group.
- On the Content tab, choose the module in Hours from. Leave it empty to use the first published module.
- Click Edit Hours to open that module with its Studio, if you need to change the hours.
- On the Settings tab, pick the layout and the look.
Settings
- Layout: From module keeps the module's layout, or choose one of the nine layouts for this element only.
- Look:
- YOOtheme style takes the colours and fonts of your YOOtheme style. Open, closed and the accent follow your theme's colours, and the module adds no box of its own.
- Module design uses the colours, box and fonts set in the module's Studio.
- Panel: None, Card Default, Card Primary, Card Secondary or Card Hover, the same card styles as other YOOtheme elements.
- Status and rows: status style and size, how today is marked, and the row dividers.
- Layout options: a group with the options of the chosen layout, such as the columns for Cards or the corner for Floating. Each option left empty keeps the module's value.
- General and Advanced: YOOtheme's usual margin, visibility, class, ID and CSS settings.
You can place the element on several pages, each with its own layout. They all show the same hours, so a change in the module updates every page.
Use the dynamic content source
Any YOOtheme element can take its text from Business Hours:
- Select an element field, open Dynamic, and choose Business Hours.
- Choose the module in Module.
- Choose the field to show.
| Field | What it shows |
|---|---|
| Status | open, soon, break or closed. Useful in a class or a condition |
| Open now | 1 when open, empty when not |
| Status label | Open, Closing soon, On a break or Closed, in your words |
| Status message | The message for the current situation, with its times filled in |
| Special day today | The name of today's special day, if any |
| Today's hours | Today's opening times |
| Next change: time / day | When the status changes next |
| Week | Each day, with its date, hours, note and whether it is today or closed |
| Business name, Phone, Email, Address, Website, Map link | Your contact details |
Use Week in a multiple-items element, such as a List or a Grid, to build your own week layout.
The dynamic fields use the time on the server when the page is built. If the page is cached, they show the status from that moment. The module layouts and the Business Hours element update the status in the visitor's browser, so prefer them where a live status matters.
Troubleshooting
- Business Hours is not in the element library: check that the plugin System - NextSoftware Smart Modules is enabled and that the module is published.
- The element shows nothing: the module in Hours from is unpublished or was deleted. Choose another one.
- White text on a white card in a dark section: set Look to YOOtheme style, or give the module a preset with its own background colour.