How To Develop Twitter's Persuasion Summary Cards To Function Amongst Blogger Posts

This article shows how to install Twitter Cards into Blogger - together with explains why you lot powerfulness practise this if Twitter could hold out an of import root of visitors for your blog.


What are Twitter Cards

Recently, Neil Patel explained why having social sharing tags installed into your spider web log tin hold out important, together with I've written a niggling to a greater extent than close it specifically for Facebook together with Blogger here.

Twitter, for reasons best known to themselves, have got developed their ain version of explained why having social sharing tags installed into your spider web log tin hold out important, together with I've written a niggling to a greater extent than close it specifically for Facebook together with Blogger social media meta-tags, called "Twitter Cards".    (Apparently they practise brand some usage of Open Graph tags - but non for Twitter cards displays.)

Two things occur within Twitter when someone tweets a message including a link to a website or spider web log that has Twitter-cards installed.  

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

Secondly, when someone inwards Twitter clicks the View Summary link, to a greater extent than information (ie a "Twitter Card") is shown close the contents of the link.

In his post, Neil Patel also stated that if you 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 plenty to explained why having social sharing tags installed into your spider web log tin hold out important, together with I've written a niggling to a greater extent than close it specifically for Facebook together with Blogger edit their theme that's non quite true.


How to install Twitter Cards into a spider web log made amongst Blogger

There are 2 unproblematic steps needed to laid upwardly Twitter sharing tags for your blog:
  • Adding the code to your theme, 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 have got installed until you've tested them inwards Twitter's ain validation tool.


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

Edit your subject inwards the park way.

Find the   </head   statement, together with simply before it add together the next 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 agency 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 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 occupation organisation human relationship advert for your blog. (This draw 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 have got a explained why having social sharing tags installed into your spider web log tin hold out important, together with I've written a niggling to a greater extent than close it specifically for Facebook together with Blogger thumbnail image.

Save the subject changes.

(Twitter also have got a code-generator - but it's for websites inwards general, spell I have got configured the code higher upwardly to usage some of the values that Blogger makes available to us.)


Step 2   Validate your domain

After you lot have got done the get-go step, become  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 practise demand to have got a Twitter occupation organisation human relationship yourself - or at to the lowest degree i that is dedicated to the spider web log - to usage the validator together with hence to install Twitter Cards.

Click the Validate together with Apply tab.

Enter the address of a post from your spider web log together with press Go.

If you're using a browser that supports showing Twitter Cards, so a preview of the carte du jour for your post volition hold out 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, so at that topographic point is a work that you lot demand to fix.   Typically this volition hold out because you've accidentally left out a quote grade when you lot were adding your custom values.

Fix any problems, together with move inwards the blog-post URL over again - drib dead along going until you lot teach a greenish dot at the overstep of the list.    (Some of the twitter carte du jour values are option, so it doesn't affair if they exhibit equally greyish because they're irrelevant for a Blogger site.)

Enter the URL of your blog overall  (ie non a specific post).
  • If you lot practise nothave a custom domain (ie your spider web log is  myBlog.blogspot.com), so brand certain you lot enter the blogspot.com URL, non the country-specific i (eg   myBlog.blogspot.in).   This is of import subsequently inwards the validation process.
  • Fix whatever problems for this equally well.   (There shouldn't hold out any, but I mean value it's worth double-checking, peculiarly if you lot modify the twitter-cards code inwards whatever way.)

Press the Request Approval push clit at the overstep of the left manus sidebar.

Confirm the administrative details on the hide that opens - past times default it volition hold out filled inwards amongst details from your Twitter account.   You may hold out asked for:
  • Contact information for the somebody responsible for administering cards on your website (name, electronic mail address, Twitter handle)
  • Website information:   the URL (ie the domain), together with a description.   Note:  if you lot are based exterior the USA together with don't have got a custom domain, so most likely your country-specific address volition hold out 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) - so that Twitter tin warn viewers earlier 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 hold out usage of Twitter's cards service. We'll review your asking equally before long equally possible. Expect a few weeks for turn-around time. You volition have an electronic mail when your asking has been reviewed."

I'm non certain 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 mail inwards a few minutes maxim .
Your Twitter carte du jour is ready!
We've activated the summary carte du jour for blogger-hints-and-tips.blogspot.com.
If you lot desire to usage other kinds of Twitter cards (and nosotros know you lot do), delight brand some other 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 have got installed the Twitter Cards correctly, your electrical flow readers should regard nada dissimilar when they see your spider web log or when they read your posts via electronic mail or together with RSS feeder.

But when they include a reference to your spider web log inwards something that they ship out within Twitter, the content that they (and their followers) regard is a nicely formatted carte du jour rather than an ugly-url.





Troubleshooting

Search Descriptions

Twitter cards volition entirely run properly if you lot have got enabled Search Descriptions for your blog, together with if you lot have got entered i for every post that is tweeted.    I looked for ways around this using the post-snippet, but haven't constitute a agency to brand this run yet.

Country-specific redirects

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

Using it gets around the problems associated amongst country-specifc URLs for blogspot domain blogs, past times changing whatever Tweets of them to the blogspot.com page, instead of having your tweets split upwardly across multiple urls.

I've included it inwards my listing of tags, customized to accept its value from Blogger.    However I'm non all the same 100% certain if it volition run - together with volition update this article accordingly.

Pictures

I've laid upwardly the paradigm tag to usage the thumbnail pic for each post - because that is the entirely i that you lot tin access on a systematic agency for each post.

Twitter's rules order that pictures must hold out less than 1mb inwards file size, at to the lowest degree 60px past times 60px, together with that ones larger than 120px past times 120px volition hold out resized.    However Blogger may have got a thumbnail photograph for some of your posts that is less than 60-by-60.   For these it is probable that your default paradigm volition hold out used instead.

The entirely agency 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 close which specific domain should hold out validated. Some people reported having to validate all 3 possible URLs, ie
www.your-blog.blogspot.com
your-blog.blogspot.com
/*your-blog.blogspot.com
although it is possible that this has directly been resolved.


What other problems have got you lot encountered amongst Twitter Cards?




Related Articles

explained why having social sharing tags installed into your spider web log tin hold out important, together with I've written a niggling to a greater extent than close 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 spider web log tin hold out important, together with I've written a niggling to a greater extent than close it specifically for Facebook together with Blogger How to edit your theme

explained why having social sharing tags installed into your spider web log tin hold out important, together with I've written a niggling to a greater extent than close it specifically for Facebook together with Blogger Post.thumbnail: a summary paradigm for each Blogger post

explained why having social sharing tags installed into your spider web log tin hold out important, together with I've written a niggling to a greater extent than close it specifically for Facebook together with Blogger Linking your spider web log to the social networks
Post a Comment (0)
Previous Post Next Post