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’.
The SEO menu item is located in the WordPress admin menu, on the left side of the screen.
- Click on the SEO menu item and select ‘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’.
Using Twitter Cards in Yoast SEO
You can preview and edit your Twitter cards in the Social Tab of the Yoast SEO meta box.
Yoast SEO automatically fills in the Twitter card with some of the information you add when optimizing your posts, such as the SEO title, the meta description, or a featured image.
You are free to edit the image, title, and description of the Twitter Card. To do that, open the Social tab of the Yoast SEO meta box and expand the Twitter header. Use the appropriate fields to make the desired edits. With this Yoast SEO feature, you get maximum control over how your post appears when you share it on Twitter.
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.
Want to learn more about Twitter Cards? Visit the Twitter developer page.