How to add twitter cards for your blogger site-On page seo

Twitter cards 

how to add Twitter cards 


This not write ways post twitter cards 
so go theme and edit HTML
Search end of head tag search </head>

paste this code 

<!--Twitter Card-->
<b:if cond='data:blog.pageType == "index"'> <!--homepage-->
<meta name="twitter:card" content="summary" />
<meta name="twitter:description" expr:content='data:blog.metaDescription' />
<meta name="twitter:title" expr:content="data:blog.pageTitle" />
<meta name="twitter:site" content="@Paste your Twitter Username" />
<meta name="twitter:image" content="YOUR LOGO URL" />
<meta name="twitter:creator" content="@Digital14596287" />
</b:if>
<b:if cond='data:blog.pageType == "static_page"'> <!--page-->
<meta name="twitter:card" content="summary" />
<meta name="twitter:description" expr:content='data:blog.metaDescription' />
<meta name="twitter:title" expr:content="data:blog.pageTitle" />
<meta name="twitter:site" content="@Paste your Twitter Username" />
<meta name="twitter:image" content="YOUR LOGO URL" />
<meta name="twitter:creator" content="@Paste your Twitter Username" />
</b:if>
<b:if cond='data:blog.pageType == "item"'> <!--blog post-->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:description" expr:content='data:blog.metaDescription' />
<meta name="twitter:title" expr:content="data:blog.pageName" />
<meta name="twitter:site" content="@Paste your Twitter Username" />
<meta name="twitter:image" expr:content="data:blog.postImageUrl" />
<meta name="twitter:creator" content="@Paste your Twitter Username" />
</b:if>
<!--End Twitter Card-->

save this code before your change twitter page username and logo.

check your page url Once the tags are live, you can test your Card using our Twitter Card Validator.
And other information for Twitter cards .



Done your Twitter cards and happily start your Twitter Post .






Post a Comment

0 Comments