Tweet Button to Web Page

Add Tweet Button to Your Website

To make it easier for our web pages to be shared on Twitter, let's create a Tweet button.

For this, we can add a link with a text, button or image so that the Twitter site or application opens when it is clicked:

<a href="https://twitter.com/intent/tweet?original_referer=http://www.btdersleri.com&ref_src=twsrc%5Etfw&text=Information Technology Lessons&tw_p=tweetbutton&url=http://www.btdersleri.com">

tweet

</a>

As can be seen from the example above, it will be sufficient to use a link for Twitter sharing. 

We should edit the href parameter of the a tag we wrote as above. If we examine the value of the href parameter, we will see several parts. Let us explain the important ones as follows:

The text written after "text=" will be automatically selected in the tweet box. The user can delete this text with a single click.

The url address written after "url=" will be added to the tweet. This link will be shortened automatically when the tweet is shared.

Both parts are optional. If we wish, we can provide only url or text sharing.

When the button in the example is clicked, the Twitter application or site will open and the phrase "Information Technologies Courses: www.btdersleri.com" will appear in the message box.

It would be more useful to use a Twitter image instead of writing a text inside the link.

 

Adding Twitter Button to Website, Adding Twitter Button to Website, adding twitter share button to web page, making twitter share button

EXERCISES

There are no examples related to this subject.



COMMENTS




Read 554 times.

Online Users: 314



tweet-button-to-web-page