ADS

News!! How To Gear Upwards Twitter's Consider Summary Cards To Suffer With Blogger Posts

This article shows how to install Twitter Cards into Blogger - together with explains why you lot lot mightiness do this if Twitter could alive on an of import rootage of visitors for your blog.


What are Twitter Cards

Recently, Neil Patel explained why having social sharing tags installed into your weblog tin alive on important, together with I've written a niggling to a greater extent than virtually it specifically for Facebook together with Blogger here.

Twitter, for reasons best known to themselves, direct choke on developed their ain version of explained why having social sharing tags installed into your weblog tin alive on important, together with I've written a niggling to a greater extent than virtually it specifically for Facebook together with Blogger social media meta-tags, called "Twitter Cards".    (Apparently they do build about usage of Open Graph tags - but non for Twitter cards displays.)


Two things attain inside Twitter when somebody tweets a message including a link to a website or weblog that has Twitter-cards installed.  

Firstly, the message has the words "View Summary" under it, instead of simply "Expand".





Secondly, when somebody inwards Twitter clicks the View Summary link, to a greater extent than information (ie a "Twitter Card") is shown virtually the contents of the link - similar this:




In his post, Neil Patel also stated that if you lot lot don't usage Wordpress,
"you’ll demand to manually generate meta tags for each page on your site"
but fortunately for Blogger users who are brave enough to explained why having social sharing tags installed into your weblog tin alive on important, together with I've written a niggling to a greater extent than virtually it specifically for Facebook together with Blogger edit their template that's non quite true.


How to install Twitter Cards into a weblog made amongst Blogger

There are 2 uncomplicated steps needed to seat upwards Twitter sharing tags for your blog:
  • Adding the code to your template, together with then 
  • Asking Twitter if you've got it right.    
The sec mensuration is necessary because (for whatever reason) Twitter won't usage the tags you lot lot direct choke on installed until you've tested them inwards Twitter's ain validation tool.


Step 1   Add the Twitter Card meta-tags to your template


Edit your template in the greenish way.


Find the   </head   statement, together with simply before it add together together the side past times side lines of code:

<!--  START - TWITTER CARD TAGS   -->
<meta name="twitter:card" content="summary"/> 
<meta name="twitter:site" content="@YOUR-TWITTER-ACCOUNT-NAME"/> <meta name="twitter:domain" content="YOUR-BLOG-URL"/>

<b:if cond='data:blog.pageType == &quot;item&quot;'><meta name="twitter:title" expr:content='data:blog.pageName'/><b:else/>
<meta expr:content='data:blog.homepageUrl' name='twitter:url'/>
<meta expr:content='data:blog.pageTitle' name='twitter:title'/></b:if>
<b:if cond='data:blog.postImageThumbnailUrl'><meta name="twitter:image:src" expr:content='data:blog.postImageThumbnailUrl'/><b:else/><meta name="twitter:image:src" content='URL-FOR-IMAGE-YOU-WANT-TO-USE-IF-THERE-IS-NOT-A-THUMBNAIL-PHOTO-IN-THE-POST' /></b:if> 
<b:if cond='data:blog.metaDescription'><meta name="twitter:description" expr:content='data:blog.metaDescription'/><b:else/><!-- Still looking for a way to usage the post snippet if there's no description --></b:if>

<meta name='twitter:url' expr:content='data:blog.canonicalUrl'/>
<!--  END - TWITTER CARD TAGS   -->


Except, you lot lot demand to replace a few items amongst your ain values:
  • YOUR-BLOG-URL - amongst your blog's address (eg for me, it's blogger-hints-and-tips.blogspot.com)
  • YOUR-TWITTER-ACCOUNT-NAME - amongst the Twitter business concern human human relationship refer for your blog. (This business is optional)
  • URL-FOR-IMAGE-YOU-WANT-TO-USE-IF-THERE-IS-NOT-A-THUMBNAIL-PHOTO-IN-THE-POST - amongst the web-address of an alternative pic to usage if the post doesn't direct choke on a explained why having social sharing tags installed into your weblog tin alive on important, together with I've written a niggling to a greater extent than virtually it specifically for Facebook together with Blogger thumbnail image.

Save the template changes.


(Twitter also direct choke on a code-generator - but it's for websites inwards general, slice I direct choke on configured the code higher upwards to usage about of the values that Blogger makes available to us.)


Step 2   Validate your domain


After you lot lot direct choke on done the starting 4th dimension step, choke  https://dev.twitter.com/docs/cards/validation/validator.  This is Twitter's validating tool, where they cheque if your code meets their requirements.


Log inwards using your Twitter account.  
You do demand to direct choke on a Twitter business concern human human relationship yourself - or at to the lowest marking 1 that is dedicated to the weblog - to usage the validator together with therefore to install Twitter Cards.


Click the Validate together with Apply tab.


Enter the address of a post from your weblog together with press Go.


If you're using a browser that supports showing Twitter Cards, together with too therefore a preview of the carte for your post testament alive on shown inwards the right side of the screen.   Check that this looks correct.


Look at the list of results of your Twitter-card values shown on the left of the screen.   If whatever of them exhibit a red-dot, together with too therefore at that topographic indicate is a job that you lot lot demand to fix.   Typically this testament alive on because you've accidentally left out a quote marking when you lot lot were adding your custom values.



Fix any problems, together with movement into the blog-post URL over 1 time to a greater extent than - expire along going until you lot lot acquire a dark-green dot at the attain of the list.    (Some of the twitter carte values are option, therefore it doesn't thing if they exhibit every bit grayish because they're irrelevant for a Blogger site.)


Enter the URL of your blog overall  (ie non a specific post).
  • If you lot lot do nothave a custom domain (ie your weblog is  myBlog.blogspot.com), together with too therefore build sure enough you lot lot enter the blogspot.com URL, non the country-specific 1 (eg   myBlog.blogspot.in).   This is of import later inwards the validation process.
  • Fix whatever problems for this every bit well.   (There shouldn't alive on any, but I cry back it's worth double-checking, especially if you lot lot modify the twitter-cards code inwards whatever way.)


Press the Request Approval force clitoris at the attain of the left paw sidebar.


Confirm the administrative details on the covert that opens - yesteryear default it testament alive on filled inwards amongst details from your Twitter account.   You may alive on asked for:
  • Contact information for the soul responsible for administering cards on your website (name, electronic ship service address, Twitter handle)
  • Website information:   the URL (ie the domain), together with a description.   Note:  if you lot lot are based outside the USA together with don't direct choke on a custom domain, together with too therefore virtually inwards all probability your country-specific address testament alive on shown here.    Change it to the blogspot.com   address.
  • Whether your site publishes images or videos that may comprise sensitive content (eg nudity, violence, or medical procedures) - therefore that Twitter tin warn viewers before showing them.
  • The website's Twitter-name.




Press Submit Request.


After a moment, if your details are correct, Twitter shows a message saying 
"Thanks for applying to alive on run of Twitter's cards service. We'll review your asking every bit presently every bit possible. Expect a few weeks for turn-around time. You testament conduct maintain an electronic ship service when your asking has been reviewed."

I'm non sure enough if they apply this to all (or indeed any) countries or Twitter accounts:   when I installed Twitter Cards for this site, I got an electronic ship service inwards a few minutes saying .
Your Twitter carte is ready!
We've activated the summary carte for blogger-hints-and-tips.blogspot.com.
If you lot lot wishing to usage other kinds of Twitter cards (and we know you lot lot do), please build another request.

And the cards themselves were activated on a test-tweet that I did a few minutes after that.


What your readers see

If you lot lot direct choke on installed the Twitter Cards correctly, your electrical catamenia readers should reckon nix dissimilar when they reckon your weblog or when they read your posts via electronic ship service or together with RSS feeder.

But when they include a reference to your weblog inwards something that they transportation out inside Twitter, the content that they (and their followers) reckon is a nicely formatted carte rather than an ugly-url.





Troubleshooting


Search Descriptions

Twitter cards testament alone operate properly if you lot lot direct choke on enabled Search Descriptions for your blog, together with if you lot lot direct choke on entered 1 for every post that is tweeted.    I looked for ways roughly this using the post-snippet, but haven't establish a way to build this operate yet.


Country-specific redirects

Neil Patel suggested 1 tag that is non included inwards the mensurate Twitter Cards documentation: twitter:url

Using it gets roughly the problems associated amongst country-specifc URLs for blogspot domain blogs, yesteryear changing whatever Tweets of them to the blogspot.com page, instead of having your tweets separate upwards across multiple urls.

I've included it inwards my listing of tags, customized to conduct maintain its value from Blogger.    However I'm non all the same 100% sure enough if it testament operate - together with testament update this article accordingly.


Pictures

I've seat upwards the image tag to usage the thumbnail pic for each post - because that is the alone 1 that you lot lot tin access on a systematic way for each post.

Twitter's rules say that pictures must alive on less than 1mb inwards file size, at to the lowest marking 60px yesteryear 60px, together with that ones larger than 120px yesteryear 120px testament alive on resized.    However Blogger may direct choke on a thumbnail photograph for about of your posts that is less than 60-by-60.   For these it is belike that your default image testament alive on used instead.

The alone way to over-ride this is to usage a post-specific Twitter meta-tag which points to a larger photograph like:
<b:if cond='data:blog.postURL == &quot;URL-OF-THE-POST&quot;'><meta name="twitter:image:src" content='URL-FOR-IMAGE-YOU-WANT-TO-USE-FOR-THIS-POST' />
</b:if>

Domains

Twiter's documentation was initially a niggling sketchy virtually which specific domain should alive on validated. Some people reported having to validate all iii possible URLs, ie
www.your-blog.blogspot.com
your-blog.blogspot.com
/*your-blog.blogspot.com
although it is possible that this has direct been resolved.


What other problems direct choke on you lot lot encountered amongst Twitter Cards?




Related Articles:


explained why having social sharing tags installed into your weblog tin alive on important, together with I've written a niggling to a greater extent than virtually it specifically for Facebook together with Blogger Adding Facebook's Open Graph tags to your blog

explained why having social sharing tags installed into your weblog tin alive on important, together with I've written a niggling to a greater extent than virtually it specifically for Facebook together with Blogger How to edit your template

explained why having social sharing tags installed into your weblog tin alive on important, together with I've written a niggling to a greater extent than virtually it specifically for Facebook together with Blogger Post.thumbnail: a summary image for each Blogger post

explained why having social sharing tags installed into your weblog tin alive on important, together with I've written a niggling to a greater extent than virtually it specifically for Facebook together with Blogger Linking your weblog to the social networks

Subscribe to receive free email updates:

ADS