#25 Shortcode Twitter

Amy Marsh Is A Fashion Technologist In Training

Tweetable

 

Happy Monday! I hope you have all had a lovely weekend! Yesterday was all about Pinterest and today I am sticking with Social Media and moving onto to Twitter! I will be using a shortcode again but this time it will allow me to add tweetable links to a post instead. This shortcode will make your content tweetable for your readers quicker and  easier.

 

This is a simple task and should not take you more than an hour, an easy task to start our final week of coding! Can you believe it?!

 

Let’s get started!

 

 

First you will need to add this section of code to your functions.php file, add it underneath the pinterest_function you will of added if you completed day 24 shortcode Pinterest code (if not simply add to the end of your functions.php file).

 

 

Next add this section of code. This code is personal to our twitter therefore you will need to change sections accordingly:

 

 

For the bitly code you will need to add your bitly username and api key, to find this you will have to sign up to bitly (if you are not already) and go on this page when signed in:

 

 

For the tweetable code you will need to change the twitter handler from @chloedigital to yours:

 

 

Next again if you have completed the shortcode Pinterest Tutorial add the tweetable function to the register_shortcodes function:

 

 

If you have not completed the pinterest tutorial add this section of code instead to the bottom of your functions.php file:

 

 

Next add the styling to the tweetable shortcode:

 

 

If you decided to change the styling remember that the maximum tweet you will be allowing people to send out is 140 characters so test out your styling with a piece of text that is 140 characters.

 

Finally to add a tweetable to your post, use your newly made shortcode, change what is written in between the tags to be more suitable to your blog:

 

 

NB- Make the text inside only 100 characters long as when a person clicks to tweet it will also include your twitter handler and a link back to the blog post. Still test each quote to make sure it is the correct length.

 

Here is our tweetable link:

 

 

 

DAY 25 COMPLETE!

Leave a comment with any questions or to submit your progress and make sure to check out the blog tomorrow and see what has changed!

 

Stay Updated

If you enjoyed this post, subscribe to the Fashion Technologist for updates

What are you interested in?

Discover more:
email course
(blog)Random Banner Ad Featured Image
Screen Shot 2014-06-10 at 17.43.10
two ways to make your site more secure
(feat) theFEED Profiles- RooftopAntics.com
How to change the default media linking option in wordpress
Why I do not like blog posts being By Admin
how to create a wordpress plugin

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">