How to Show Blogger Posts on Twitter Tweets with Large Image

Updated:

by

How To Show Website Posts On Twitter With Large Image

Do you want to show your Blogger posts on Twitter tweets with large image? You’re in the right place. In this tutorial, I will guide you step-by-step on How to show Blogger posts on Twitter tweets with large image/thumbnail by adding the Twitter Summary Card code in your theme.

Twitter posts with large images attract the audience more as compared to the posts with smaller images, as a result you get more clicks on your posts.

Following topics will be covered in this tutorial:

  1. Add Twitter Summary Card Code in Blogger Theme
  2. Validate the Twitter Summary Card
  3. Share on Twitter

RELATED

01. Add Twitter Summary Card Code in Blogger Theme

Follow the steps to add the code of Twitter Summary Card with Large Image in Blogger theme.

  • Click the Theme from the Sidebar.
  • Click the Downward Arrow attached with the CUSTOMIZE button.
  • Click the Edit HTML option.
  • Paste the code of Twitter Card Summary somewhere between the <head> </head> tags, as shown below. I have shared the code in the next step.
  • Save the theme after you paste the code.
Paste the code of Twitter Card Summary somewhere between the <head> </head> tags
  • You are only required to make a one change in the code. Replace @meersworld with your Twitter username.
<meta name='twitter:card' content='summary_large_image'/>
<meta name='twitter:site' content='@meersworld'/>
<meta name='twitter:title' expr:content='data:view.title.escaped'/>
<meta name='twitter:description' expr:content='data:view.description.escaped'/>
<meta name='twitter:creator' content='@meersworld'/>

<b:if cond='data:view.featuredImage'>
<meta name='twitter:image' expr:content='resizeImage(data:view.featuredImage, 1200, "1200:630")'/>
<b:elseif cond='data:widgets'/>
<b:loop values='data:widgets.Blog.first.posts where (p => p.featuredImage) map (p => p.featuredImage)' var='imageUrl'>
<meta name='twitter:image' expr:content='resizeImage(data:imageUrl, 1200, "1200:630")'/>
</b:loop>
<b:elseif cond='data:blog.postImageUrl'/>
<meta name='twitter:image' expr:content='resizeImage(data:blog.postImageUrl, 1200, "1200:630")'/>
</b:if>

02. Validate the Twitter Summary Card

In this section, I will guide you on how to validate your Twitter Summary Card with Large Image.

If there is no problem in card validation, it will show you the card preview with large image and following Log.

Log
    INFO: Page fetched successfully
    INFO: 35 metatags were found
    INFO: twitter:card = summary_large_image tag found
    INFO: Card loaded successfully

03: Share On Twitter

Now open a post on your website and share on Twitter. If you see that tweet with a small image clear the browser cache/history and refresh, or open your Twitter account on some other browser to see the changes.

Tweet with a large summary image
  • Get access to all our Blogger Tutorials.
  • If you like this post then don’t forget to share with other people. Share your feedback in the comments section below.
Blogger Templates

Also Read:

Related Topics: , , , ,
Buy Domain and Hosting on Namecheap Now
Rank Math Best SEO WordPress Plugin Download
Download Website Themes
Mangools SEO Tools
Order Motivational T-Shirts With Quotes from Our Store Fire Ram 23.4.

Subscribe to Our Newsletter!

2 responses

  1. Avatar
    Lisabet Sarai

    Thank you!

    This worked like a charm!

    1. Meer Basit

      You’re most welcome Lisabet.

Leave a Reply

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