Setting up Twitter Cards in Yoast SEO

With Twitter Cards, you can add rich content, like images, when your content is shared on Twitter.

In Yoast SEO Premium, you get full control of your Twitter (and Facebook) shares! There is no guesswork with the social preview feature. By seeing exactly what your posts look like when you share them, you get the chance to improve your social media presence.

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 a few pieces of information so the plugin can generate the appropriate card data.

  1. Log in to your WordPress website.

    When you’re logged in, you will be in your ‘Dashboard’.

  2. Click on ‘SEO’.

    The SEO menu item is located in the WordPress admin menu, on the left side of the screen.

  3. Click on the SEO menu item and select ‘Social’.

    The ‘SEO’ settings will expand providing you with additional options. Click on ‘Social’.

  4. Under ‘Accounts’, add your site-wide Twitter username.

    Enter your site-wide Twitter username if it’s not already entered.

  5. Click on the ‘Twitter’ tab.

  6. Enable ‘Add Twitter card meta data’ and select your preferred card type.

  7. 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. 

Note: Previews are available only in Yoast SEO Premium.
Twitter in the Social tab of Yoast SEO

Yoast SEO automatically fills in the Twitter card with some of the information you add when optimizing your posts. For example, 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, you get a summary with large image cards by default when you first install the Yoast SEO (Premium) plugin.

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

We do not support player or app cards, at this moment.

Want to learn more about Twitter Cards? Visit the Twitter developer page.

Related articles

Get free SEO tips!