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.
In any case, if you go for the Plugin Way, you can point towards WordPress Plugin Repository and search with the phrase
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 :
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 :
Things are arranged in this manner :
+ [languages] [ No need ]
+---inline-tweet-sharer.css [ No need . We will modify ]
+---inline-tweet-sharer.zip [ No need. wtf, plugin zip within plugin... ]
+---paypal.gif [ No need ]
+---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 :
Change the Plugin URL to your own website’s URL. Like :
//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 :
$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
@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:
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 :
(2) Using Tempo script :