Connect with us

How to Show Blogger Posts on Twitter Tweets with Large Image

Blogger

How to Show Blogger Posts on Twitter Tweets with Large Image

How To Show Website Posts On Twitter With Large Image
(Last Updated On: December 30, 2022)

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 Theme from the Sidebar. Click the Downward Arrow attached with the CUSTOMIZE button.
  • Click the Edit HTML option.
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
Go to Twitter Card Validator. Copy any of your blog post URL and Paste in the Card URL textbox. Click the Preview card.

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:

Meer Basit is the founder of Meer’s World. He’s been running the show since launching the blog back in 2018. By background he is a computer scientist. Primarily, he creates content around blogging (WordPress, Blogger, Tumblr), SEO, affiliate programs, earn-online, reviews, eCommerce, & technology. He has got years of professional experience in web programming, computer programming, databases, data warehousing, & transcription. In general, he likes traveling, gardening, creating TikToks(@iammeerbasit), watching movies, is a passionate cricketer, creative writer, and a GSD lover.

Click to comment

Leave a Reply

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

More in Blogger

To Top