How to Apply Twitter Cards to All Pages on Website


#1

This may sound like a stupid question that has a very simple answer, but is there a way to apply Twitter Cards to all the pages on a website? My cards have been verified and I’ve changed the code on my site - the example URL I provide works, but it doesn’t work for any other URL on my site. Can anyone offer advice? Thanks!


#2

Hi Bluejay

Are you using a CMS? Usually these have a global header file for you.


#3

Yes, I am using Blogger and pasting the code into the head of the HTML. The Twitter Cards are working on some of my pages but not all of them for some strange reason.

I did submit my example posts and they were validated, but any other URL on my site will not show the Twitter Card.


#4

Strange, have you got an example of where it works and where it doesn’t work? Blogger might just be taking a while to update or pages/posts will have different templates.

Thanks


#5

Thanks! Here’s a link to one that does work:
https://twitter.com/BallotsBautista/status/472080322096824320

And one that doesn’t.
https://twitter.com/BallotsBautista/status/472104092563931136

I’ve tweeted them out from my other Twitter account. I checked, and both pages have search descriptions activated.


#6

Hi @BlueJayHunter!

You can follow these steps to add Twitter Cards to your Blogger site:

https://dev.twitter.com/docs/cards/twitter-cards-for-cms-wordpress-blogger-tumblr

Let me know if that works!


#7

Thanks Ryan! I did use that guide to post to Blogger, and all seems to be okay at the moment.

The other question I had was, how do you get it so that the “snippet” is your search description from the post? Right now it’s just pulling the first few sentences from my page. Thanks!