You can customize 2 parameters of the contact button generated by Symplicy :
To customize them, you have to attach a SymplicyOptions
object to the page window
This object accepts 2 properties, corresponding to the 2 customs parameters :
style
To custom stylinglocales
To edit textTo declare these parameters, you must place a script before the main script :
<script>
window.SymplicyOptions = {
styles: {
// style's options
},
locales: {
// text's options
}
};
</script>
You can change several properties of the button, by separating them with commas :
padding
space between border and contentborder
bordersborderRadius
corner roundingbackgroundColor
button colorcolor
font colorfontFamily
font characterfontSize
font sizefontWeight
font weightIf you wish to keep one of these defaults, simply omit the property. The default value will apply.
Example
<script>
window.SymplicyOptions = {
styles: {
padding: '8px 12px',
borderRadius: '4px',
backgroundColor: '#E68A6F',
color: '#ffffff',
fontFamily: 'Source Sans Pro',
fontSize: '14px',
fontWeight: '700'
}
};
</script>
You can change the text displayed in the button by separating the different languages with commas
en
englishfr
frenchnl
dutchde
germanes
spanishit
italianSymplicy will automatically display the default website language
Currently, forms are only available in English, French and Dutch
Example
<script>
window.SymplicyOptions = {
locales : {
fr: 'Veuillez répondre à quelques questions',
en: 'Please answer a few questions',
nl: 'Beantwoord enkele vragen',
...
}
};
</script>
A piece of advice, a problem ? Contact us info@symplicy.com