How to set custom Twitter meta tags

As of Yoast SEO 20.0, the settings interface inside our plugins has received a major overhaul. Please update to the latest version of Yoast SEO if your plugin does not look like the screenshots you encounter in our Help center.

Related Articles

Yoast SEO includes the option to set custom Twitter images, titles and descriptions on a page by page basis after you have enabled Twitter meta data. The social tab of the meta box allows you to set a custom image, title and description on each post, page or taxonomy.

  1. Log in to your WordPress website.

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

  2. Edit the post, page or other custom post type you’d like to exclude.

    On the left-hand side, you will see a menu. In that menu, navigate to the post, page or other custom post type you’d like to exclude.

  3. Open the Yoast SEO sidebar and click on the Twitter preview tab.

  4. Enter the Twitter image, title, and description.

    Screenshot Twitter preview in Yoast SEO

Twitter Preview

One of the Yoast SEO for WordPress Premium features is the ability to see what your post will look like when sharing on Twitter.

Screenshot Twitter preview in Yoast SEO Premium

Changing The Twitter Metatags

Changing the Twitter URL Metatag

If you want to change the Twitter URL metatag, you will need to use the filters we have for OpenGraph tags, as Twitter uses the og:url to display it in Google. You can view the filters here.

Changing the Twitter:Image Metatag

To change the Twitter:image tag use the filer: wpseo_twitter_image instead of the wpseo_opengraph_type filters we have here.

Related articles

Get free SEO tips!