Unleashing the potential of customer data in omnichannel retail
Watch the webinar recording with Vincent Gaillard and Brent de Ranter from Tilroy and Aleksi Montonen from Custobar.
Watch the webinar recording with Vincent Gaillard and Brent de Ranter from Tilroy and Aleksi Montonen from Custobar.
User guides
Call-to-action modules are a standard feature of Custobar and they are automatically included in all new email templates created with the email template designer. To add the CTA module to your templates, create a new email template with the email template designer which you can find from Settings -> Content templates -> Email template designer.
If you have a custom email template, follow these instructions to create a custom CTA module for your template.
A call-to-action module is a content module, with 1 to 5 buttons, each with its own unique action and redirection link. The buttons are edited with email content editor. To create a call-to-action module, decorate a normal module as follows.
Decorate the element wrapping buttons with class cb-cta- module-btns
, and add two attributes to it.
data-cb-cta-mail-width
is the pixel width of the entire message
data-cb-button-widths
is a JSON array of five button widths, where the first width is for a single button and the last a width for each of the five buttons.
Add a single element as the direct child of cb-cta-module-btns
, and create your button layout with it. Decorate one of the descendant elements with class cb-cta-module-btn
. This will be the button that is managed by Custoboar. Custobar manages the buttons, so that it clones the first direct child element of cb-cta-module-btns
and updates the data-* attributes of the nested descendant, which has the class cb-cta-module-btn
.