These 'Tweet' and 'Follow' buttons are small widgets that will allow your visitors to easily interact with you on Twitter without ever having to leave your landing page.
Setting these widgets up is a simple two step process. All you need to do is:
- Add the Twitter Javascript to your Unbounce page, and
- Embed the custom HTML components on your page.
You can fully customize the appearance and functionality of these buttons by following the instructions at Twitter's Developer websites for the Tweet Button and the Follow Button.
Step One - Add the Twitter Javascript to your Unbounce page
- Click the Javascripts button in the bottom left of the editor. A new dialog box will appear.
- In the new Manage Scripts dialog box, fill out the following information:
- In the Script Name field, type ‘Twitter Buttons’.
- In the Placement drop-down menu, select the Head option.
- Copy the script found on this Twitter site and paste it into the main body of the dialog box.
- Click the Save Code button at the bottom right corner of the dialog box.
Step Two - Add the Custom HTML Components On Your Page
- Drag and drop the Custom HTML widget from the left-hand side of the editor to the place on your page where you would like to add the Twitter buttons. A new dialog box will appear.
- Follow the twitter link below and copy the code found on the page. The link will also teach you how to make any specific changes to the code if you’d like to customize the look, link, or tweet.
- Twitter Documentation: Adding a Custom Tweet Button
- Twitter Documentation: Adding a Custom Follow Button
- Go back to the Unbounce Builder. Paste in the twitter code to the Embed Custom HTML Code dialog box.
- Click the Save Code button at the bottom right corner of the dialog box.
- Save and Publish/Republish your page.
That's it! You’re all set for all your Twitter Needs. The Finished Product:
Note:
If you’d like to include both the Follow and Tweet buttons as above, you’ll need to embed a separate Custom HTML component for each button, though the javascript only needs to be included once.