• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here: Home » Create Inline Tweet in WordPress

By Abhishek Ghosh April 6, 2014 6:18 pm Updated on April 6, 2014

Create Inline Tweet in WordPress

Advertisement

Create Inline Tweet in WordPress Inline To Simply Create Hyperlinks to Share Content on twitter With a Twitter CSS Icon Font With Extra Load. Basically, what you read on our website are what they are implemented on high end Custom Themes. Practically, most of them are available as free software.

When we are talking about CSS Icon Font, definitely we can use Base64 Encoding and HTML5 i class to use something which suits our own website’s design.

 

Create Inline Tweet in WordPress : PHP Way

 

New users will prefer Plugin Way to Create Inline Tweet in WordPress. We do not recommend to use hundreds of Plugins, the complexity increases with increasing number of plugins. Most of the functions actually are of PHP MySQL, either in combination or alone or just some usage of WordPress function.

Advertisement

---

In any case, if you go for the Plugin Way, you can point towards WordPress Plugin Repository and search with the phrase Inline Tweet.

 

Create Inline Tweet in WordPress : Our Own Way

 

We will adapt some part from existing Open Source Library and Some Parts from our own old Tutorials to create beautiful Inline Tweet in WordPress with CSS Icon Font or CSS Base64 Encoding.

So, when we are talking about CSS Icon Font or CSS Base64 Encoding; we should refer to the older articles and / or guides on the mentioned topics :

CSS to Base64 in WordPress

Icon Font in WordPress

Create Your Own Icon Font

Icon Font is nothing but the nice Icons which you can see top right of this webpage – those Icons of Twitter, Google Plus, RSS Links etc. Practically we can embed them here too :



i class get rendered when the library loads. We need some stuffs to make universally working.
Actually, this is a good Library to Create Inline Tweet in WordPress, but it is too much bloated with Paypal stuffs and old CSS methods :

Vim
1
https://github.com/rhyswynne/inline-tweet-sharer/

So, first download the whole repo on your desktop. We could do it for you, but those of you keen to learn modifying the plugins and checking plugins for Third Party Javascript (remember, they can steal your privacy and security) and nulling them should start from this type of guide. It is GNU GPL 2.0. We will Add both GNU GPL 3.0 and Apache License so that anyone can use it.

Things are arranged in this manner :

Vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
+ [languages] [ No need ]
|
+---bitly.php
+---editor_plugin.js
+---inline-tweet-sharer-admin.css
+---inline-tweet-sharer.css [ No need . We will modify ]
+---inline-tweet-sharer.js
+---inline-tweet-sharer.php
+---inline-tweet-sharer.zip [ No need. wtf, plugin zip within plugin... ]
+---paypal.gif [ No need ]
+---readme.txt
+---twitter-bg-hover.png [ No need ]
+---twitter-bg.png  [ No need ]
+---twitter.png [ No need ]

First edit the inline-tweet-sharer.php file. Comment out the not required stuffs with // like :

Vim
1
//define("ITS_DONATE_LINK","https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=SBVM5663CHYN4");

Change the Plugin URL to your own website’s URL. Like :

Vim
1
2
define("ITS_PLUGIN_URL","https://thecustomizewindows.com/");
//where https://thecustomizewindows.com/ is your website

But, we will not load the CSS file for frontend. Because the Twitter Icon-Font or Base64 File is either already in your existing CSS or you can add the lines – actually this is manually combining CSS files. You already know how to add the CSS files for Icon Font. If you do a bit work, actually there will be one PHP file, one Js.

Actually, the basic PHP + WordPress function we need is :

Vim
1
$url = 'https://twitter.com/intent/tweet?url=' . urlencode($permalink) . '&text=' . $tweetlinkstring;

Basic things are =>

+ Get the Post Permalink
+ Add custom Text fetching from the linked sentence
+ Icon Font etc. CSS stuffs to make it good looking
+ Usage of some minimal HTML5 functions

 

Create Inline Tweet in WordPress : Javascript Way (cream)

 

Create-Inline-Tweet-in-WordPress

@Anywhere library or other ways. First, make sure you have jQuery included in your document’s head. Then create a link that has the same URL as the eventual tweet button, along with an empty div where your button will be rendered:

At the bottom of your page, right above the /body tag, include the javascript from Twitter and the function that will render the button, as well as the listener that will activate the function when the desired event takes place:

Lastly, add a link to your page somewhere that will activate the function above based on some event:

Other ways are :

(1) Using node.js :

Vim
1
http://twitter.github.io/hogan.js/

(2) Using Tempo script :

Vim
1
http://twigkit.github.io/tempo/

This Article Has Been Shared 496 Times!

Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Create Inline Tweet in WordPress

Actually a list should normally appear here. Automated calculation failed.

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • What is Configuration Management February 5, 2023
  • What is ChatGPT? February 3, 2023
  • Zebronics Pixaplay 16 : Entry Level Movie Projector Review February 2, 2023
  • What is Voice User Interface (VUI) January 31, 2023
  • Proxy Server: Design Pattern in Programming January 30, 2023

About This Article

Cite this article as: Abhishek Ghosh, "Create Inline Tweet in WordPress," in The Customize Windows, April 6, 2014, February 5, 2023, https://thecustomizewindows.com/2014/04/create-inline-tweet-wordpress/.

Source:The Customize Windows, JiMA.in

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT