Bike
Import the Bike design and it brings blocks and content types of its own, on top of the main Canvas library. Read this page when you are working on a site built from Bike and meet a block you cannot find in the main reference.
These items stay registered on every site so that content you have already imported keeps rendering, and they appear in the block inserter only where the design is in use.
Content types this design adds
Rental Items
canvas_bike_rental
One item is called a Rental Item. You will find them in their own admin menu once the design is installed.
- Editor features: custom-fields, editor, excerpt, page-attributes, thumbnail, title
- Grouped by: Rental Categories (
canvas_bike_rental_category)
Each item carries these extra settings on its edit screen:
Frame
Gears
Daily Rate
Blocks this design adds
Rental Calculator
canvas-core/bike-calculator
Two range sliders: quantity and duration: that price a rental at a set daily rate. In the block inserter it is named Canvas Rental Calculator.
Select the block on a page and its own settings open in the sidebar, in the panels below:
Quantity
Quantity LabelDefault
Select Number of BikesThe wording shown under the quantity slider.
Quantity MinimumDefault
1The smallest number a visitor can slide down to.
Quantity MaximumDefault
5The largest number a visitor can slide up to. Set it to the most you are willing to hire out at once.
Quantity Starting ValueDefault
1Where the quantity slider rests when the page loads, which also sets the first total the visitor sees.
Quantity SuffixDefault
Bike(s)Shown after the value on the slider handle, separated by a space.
Quantity Input IDDefaultEmpty
Optional. Set it to associate the label with the control.
Quantity Input ClassDefault
range-slider-bikesThe class carried by the quantity control. The calculator also uses it to find that control, so keep it unique on the page.
Duration
Duration LabelDefault
Select Number of DaysThe wording shown under the duration slider.
Duration MinimumDefault
1The shortest hire a visitor can slide down to.
Duration MaximumDefault
30The longest hire a visitor can slide up to.
Duration Starting ValueDefault
4Where the duration slider rests when the page loads. A typical hire length here shows a realistic price straight away.
Duration SuffixDefault
DaysShown after the value on the slider handle, separated by a space.
Duration Input IDDefaultEmpty
Optional. Set it to associate the label with the control.
Duration Input ClassDefault
range-slider-daysThe class carried by the duration control. The calculator also uses it to find that control, so keep it unique on the page.
Pricing
Rate Per Unit Per DayDefault
2Total = quantity x duration x this rate.
Currency SymbolDefault
$The symbol placed in front of the running total.
Total Output SelectorDefault
.pricing-priceWhere on the page the running total is written. The default points at the price line of the pricing card; to send it elsewhere give that element an ID in its Advanced panel and enter the ID here with a leading hash.
Layout
Row ClassesDefault
rowStyle classes on the row that holds both sliders.
Column ClassesDefault
col-6Style classes on the column each slider sits in. The default gives each half the row, so the two sit side by side.
Label ClassesDefault
mt-2Style classes on both slider labels, which is what sets the gap between a slider and its wording.
Bike Rentals
canvas-core/bike-rentals
Display rental items from the Rental Items post type as media rows or tiles, or render a single rental item page (attributes, booking CTA, related items). In the block inserter it is named Canvas Bike Rentals.
Select the block on a page and its own settings open in the sidebar, in the panels below:
Layout
LayoutDefaultMedia Rows
Which part of the design this block draws: rows of picture and text, picture tiles with a caption over them, or one of the three pieces that build a single item page. The single pieces render nothing anywhere else.
ChoicesMedia RowsTilesSingle Item - AttributesSingle Item - Booking CTASingle Item - Back + Related
Query
Category SlugDefaultEmpty
Show only items in this rental category. Empty shows every item.
ItemsDefault
00 shows all items.
Order ByDefaultMenu Order
What decides the sequence items appear in: the order you arranged them in, when each was published, or the item name.
ChoicesMenu OrderDateTitle
OrderDefaultAscending
Whether that sequence runs forwards or backwards. With Order By set to Date, Descending puts the newest item first.
ChoicesAscendingDescending
Display
Row ClassesDefault
rowStyle classes on the row that holds the items.
Column ClassesDefault
col-lg-6Style classes on the column each item sits in. This is what decides how many items fit across the row at each screen width.
Extra Column Classes (per position)DefaultEmpty
One line per column position, added after the column classes. The list repeats, so three lines cover a grid of any length. Leave a line empty for no extra classes.
Tile Classes (per position)Default
portfolio-item border d-block bg1 portfolio-item border d-blockTiles layout only. One line per tile position; the list repeats, which is how the alternating background is expressed.
Shown when Layout is "Tiles"
Media Row ClassesDefault
media rowStyle classes on the inner row that pairs a picture with its text.
Shown when Layout is "Media Rows"
Image ClassesDefault
col-sm-5 p-5 p-sm-0 pe-sm-3Style classes on the picture side of an item. The default gives it a little under half the row and insets it once the two sit side by side.
Image WidthDefault
230Width attribute on the item image. 0 omits it.
Shown when Layout is "Media Rows"
Body ClassesDefault
col-sm-7 media-bodyStyle classes on the text side of an item, which holds the name, the description and the button.
Shown when Layout is "Media Rows"
Title ClassesDefault
mb-3Style classes on the item name, which is what sets the gap under it.
Description ClassesDefault
mb-3 text-black-50Style classes on the item description. The default softens it to a lighter grey than the name above it.
Shown when Layout is "Media Rows"
Tile Image Wrapper ClassesDefault
portfolio-imageStyle classes on the picture area of a tile.
Shown when Layout is "Tiles"
Tile Caption ClassesDefault
portfolio-desc d-flex align-items-center justify-content-between position-absolute w-100Style classes on the caption bar of a tile. The default lays the name and the rate on one line at opposite ends and floats the bar over the picture.
Shown when Layout is "Tiles"
Tile Caption StyleDefault
bottom: 0; padding: 0 20px 15px;Styling written straight onto the caption bar. The default sits it against the bottom edge of the tile with a little breathing room.
Shown when Layout is "Tiles"
Rate ClassesDefault
text-darkStyle classes on the rate shown in a tile caption.
Shown when Layout is "Tiles"
Rate FormatDefault
$ %s/DayHow a rental rate reads on a tile. %s is replaced with the item's own rate.
Card Button TextDefault
View MoreWording on the button that opens the full item page from a row.
Shown when Layout is "Media Rows"
Card Button ClassesDefault
button button-shadow button-rounded fw-normal ls-0 m-0 text-transform-noneStyle classes on that button, which is what gives it its rounded shape and soft shadow.
Shown when Layout is "Media Rows"
Record Identity ClassesDefaultOn
Add WordPress's own per-record classes (post id, type, status) to each column.
Rentals Page SlugDefault
fleetSlug of the rentals landing page. The single layouts resolve it to a portable permalink for the category eyebrow and the "Back" button. Empty = no link.
Booking Page SlugDefault
contactSlug of the page the single-cta button links to. Resolved to a portable permalink so the link is correct on any install / import. Empty = no button.
CTA Button TextDefault
Rent This BikeWording on the booking button at the foot of an item page. Leave it empty and no button appears.
Back Button TextDefault
Back to the FleetWording on the button that returns a visitor from an item page to the listing. Leave it empty and no button appears.
Related HeadingDefault
More to RentHeading above the row of other items at the foot of an item page. Leave it empty to show them with no heading.
Related Row ClassesDefault
rowColumn classes for the related row are taken from the Column Classes field.


