Setting up Twitter Cards in Yoast SEO
With Twitter cards, you can add rich content, like images, when your content is shared on Twitter.
Table of Contents
How to activate Twitter Cards in Yoast SEO
You can set up or change Twitter Cards in Yoast SEO by going to SEO → Social. Apart from enabling 'Add Twitter card meta data', you'll need to add few pieces of information so the plugin can generate the appropriate card data.
- Log in to your WordPress website.
When you're logged in, you will be in your 'Dashboard'.
- Click on 'SEO'.
On the left-hand side, you will see a menu. In that menu, click on 'SEO'.
- Click on 'Social'.
The ‘SEO’ settings will expand providing you additional options. Click on 'Social'.
- Under 'Accounts', add your site wide Twitter username.
Enter your site wide Twitter username if it's not already entered.
- Click on the 'Twitter' tab.
- Enable 'Add Twitter card meta data' and select your preferred card type.
- Click 'Save Changes'.
What Card Types Are Available?
Summary or Summary with Large Image Cards
Summary cards are included for all Yoast SEO users and are the default for all posts and pages. As of Yoast SEO (Premium) version 5.8, summary with large image cards are selected by default upon first installation of the Yoast SEO (Premium) plugin.
Gallery, Product, Photo Cards
Twitter no longer supports gallery, product, and photo cards. They will be automatically mapped to an appropriate card type. Learn more directly from Twitter here.
Player or App Cards
Player or app cards are not supported, at this time, with our plugins.
Is It Working?
After sharing a URL with Twitter cards setup correctly, you will see a Twitter card added to your tweet. Here is an example of Summary card with Large Image.