You can customise the popup's wording through the subscribePopup object in the Web SDK init call. There are three text parameters:
-
text— the message shown in the popup; -
confirmSubscriptionButtonText— label of the "Subscribe" button; -
askLaterButtonText— label of the "Ask later" / dismiss button.
The popup has no separate title field and no "unsubscribe" button, so put your whole message into text.
Pushwoosh.push(['init', {
logLevel: 'debug', // optional, for development
applicationCode: 'XXXXX-XXXXX',
safariWebsitePushID: 'web.com.example', // if using legacy Safari push
// ... other init options ...
subscribePopup: {
enable: true,
text: 'Enable notifications to receive our latest updates and offers.',
confirmSubscriptionButtonText: 'Yes, notify me',
askLaterButtonText: 'No, thanks',
manualToggle: false, // true if you show the popup from your own code
delay: 60, // seconds between page load and popup appearance
retryOffset: 604800, // seconds before showing it again after "Ask later"
theme: 'material', // 'material' | 'topbar'
position: 'top' // 'top' | 'center' | 'bottom'
}
}]);
Appearance is configured with the same object: iconUrl, iconAlt, overlay, bgColor, borderColor, boxShadow, textColor, textSize, textWeight, fontFamily, the subscribeBtn* and askLaterBtn* colour/weight/radius keys, mobileViewMargin and viewport. See the Custom Subscription Popup documentation for the complete list.
Note: the customPopup parameter and options such as titleText, messageText, subscribeButtonText, unsubscribeButtonText and cancelButtonText do not exist in the Web SDK and are ignored if present in your configuration.
Comments
0 comments
Please sign in to leave a comment.