Last updated 05/26/2023
Before adding the ‘Contact us’ tool make sure you have added the initialization script tag.
The ‘Contact us’ tool allows you to add a contact us section to one or more pages on your website:
Users are prompted to authenticate first, before they can submit their message:
This allows you to convert your users while they are trying to contact you, and ensures that you only receive real requests from real, validate users.
The ‘Contact us’ tool is added by placing a Div Block element where you want it, then adding a Bread & Butter script tag. Alternatively, you can also add a floating Contact us tool.
Follow these steps to add the ‘Sign up / Sign in’ tool to your page:
Find the location on your page or header where you want to add the 'Contact us' tool.
In the Add element menu in the left pane in Webflow, drag a Div Block element to the location you chose in Step 1.
Select the Div Block by clicking on it on the page, or by finding it in the Navigator in the left menu.
bb-contact-us
Note: The element ID is what links the Bread & Butter code to the Div element, so it knows where to put the Login/Logout button.
Feel free to use anything other than bb-profile-widget. Just make sure to change it both in the Div Block ID, and in the Bread & Butter code snippet, so that they remain linked.
Scroll down to the Custom Code section, for the Head tag.
In the Head tag field, paste in the following script tag after the Bread & Butter initialization script tag:
<script> null == window.breadbutterQueue && (window.breadbutterQueue = []), window.injectBreadButter = function (e) { "undefined" != typeof BreadButter && BreadButter.init ? e() : window.breadbutterQueue.push(e) }; injectBreadButter(function () { BreadButter.ui.contactUsForm('bb-contact-us',{ show_phone: true, show_company_name: true, locale: { "CONTACT_US": { "HEADER": "Get in touch", "SUB_HEADER": "We'll get back to you as soon as possible.", "COLLAPSE": "Get in touch with us.", "BUTTON": "Submit", "SUCCESS": "Someone will be in touch with you soon" } } }); }); </script>
Note: If you have other Bread & Butter feature snippets, just add this snippet below them.
The following content can be configured to suit your specific requirements (see screenshot):
Add authentication & API event tracking to your website/app with a script tag & configuration