How to activate Twitter Cards in Yoast SEO
Twitter Cards is a system used by Twitter. The Twitter card data feature in Yoast SEO allows for Twitter to display a preview with images and a text excerpt when a link to your site is shared. The feature is enabled by default and we suggest you keep it that way. If you want to check whether this feature is activated, follow the steps below. We’ll also show you where you can enter your Twitter profile.
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 card data in Yoast SEO
The Twitter card data feature in Yoast SEO is enabled by default. You can check that by going to Yoast SEO → Settings → General → Site features. Make sure to add the URL of your Twitter profile too, 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 ‘Yoast SEO’.
The Yoast SEO menu item is located in the WordPress admin menu, on the left side of the screen. If you click it, the menu will expand.
- Click the ‘Settings’ menu item.
- Click the ‘General’ menu item, and then ‘Site representation’.
- Add your Twitter profile if your site represents an organization
This works differently for organizations and persons. If your site represents an organization, you can scroll down to the ‘Other profiles’ section. Here, you can add the URL of your Twitter profile.
- Add your Twitter profile if your site represents a person
If your site represents a person, you first need to select the user. The user profile of this user will now be used in the search results. Click the link below the dropdown menu to go to the WordPress user profile. On the profile page, scroll down to ‘Contact info’. Here, you can add the Twitter username of the person.
- Click ‘Save changes’.
- Click the ‘Site features’ menu item in the General settings.
- Scroll down to the Twitter card data feature.
If the feature is enabled, the toggle will show a check mark.
- If you make any changes, don’t forget to save your changes.
Using Twitter Cards in Yoast SEO
You can preview and edit your Twitter card data in the Twitter preview of the Yoast SEO sidebar or meta box. If you’re using Yoast SEO Premium, you will see an actual preview. We have a separate post about the Facebook and Twitter preview, if you want to learn more.
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.
Want to learn more about Twitter Cards? Visit the Twitter developer page.