Add Twitter button to your Magento 2 site with 4 different types.
How Twitter Button Works
Twitter element helps display Twitter button on your website . By this way, users can share your content on Twitter, follow a Twitter account and interact with other Twitter accounts without leaving your site.
There are 4 types of buttons to choose from based on your purposes: Share a link, Follow, Hashtag and Mention button.
In addition, you can customize button size (using default button or a larger Twitter button) and choose display language for the button.
Share a Link Button
This kind of button helps users easily share your content on Twitter. When they click on the Tweet button, a new child window pre-populated with the values that you define in backend will pop up. These values consist of shared URL, text, hashtags, Tweet source (via @username) and recommended Twitter accounts to follow after tweeting.
In terms of url and text, you can allow your site visitors to share the current page's URL & title or share your custom URL & text.
Share Current Page's URL & Title
Share Custom URL & Text
With Follow button, your customers can easily follow a Twitter account. After they click on the Follow button, a new window with follow action will appear.
With this kind of button, you can show/hide username and followers count.
Show Username & Followers Count
Hide Username & Followers Count
Hashtag button lets your users create Tweets with your hashtag of interest. Besides, you can pre-populate Tweet content with text and URL and recommend Twitter accounts for users to follow after they tweet.
Mention button aims at increasing interaction between your visitors and another Twitter account by mentioning the account in their Tweets. Besides, you can pre-populate Tweet content with text and recommend Twitter accounts for users to follow after they tweet.
Twitter Button element gives you the ability to change language for button text.