Customize Consent Preferences

We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.

The cookies that are categorized as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... 

Always Active

Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.

Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.

No cookies to display.

Advertisement cookies are used to provide visitors with customized advertisements based on the pages you visited previously and to analyze the effectiveness of the ad campaigns.

Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.

Skip to main content

Twitter Card Tags

Like Facebook Open Graph Tags, Twitter uses a set of meta tags called Twitter Card to provide the Twitter crawler information about a page.

Similar to Facebook Open Graph tags, Twitter Card tags are auto generated. Slim SEO uses Summary Card with Large Image, so the posts appear beautifully and more attractive on Twitter.

It's important to understand that Twitter Card supports Open Graph. So, it's redundant to output the duplicated tags.

Instead, Slim SEO only output needed tags. Here is the reference:

TagDescription
twitter:cardCard type: always summary_large_image.
twitter:titleTitle: uses Open Graph tag og:title.
twitter:descriptionDescription: uses Open Graph tag og:description.
twitter:imageImage: uses Open Graph tag og:image.
twitter:image:altImage alt text: uses Open Graph tag og:image:alt.

How to change the image when sharing on Twitter?​

By default, Slim SEO uses the featured image as the thumbnail when sharing a single post/page/term on Twitter.

However, if the featured image is not optimized for Twitter (for example, the size is not correct), then you might want to use another image. To do that, simply select another image in the Search Engine Optimization meta box, below the content:

Change the image when sharing on Twitter

The recommended size for image when sharing on Twitter is 1200x600 pixels.

Homepage settings

If you set your homepage as a static page, then the plugin treats it like a normal page. SEO settings for the homepage won't be available in the plugin settings (Settings > Slim SEO). Instead, they will be available below the editor when you edit the homepage.

How to change Twitter image programmatically?​

To change the Twitter image with code, please use this snippet:

add_filter( 'slim_seo_twitter_card_image', function( $image ) {
return 'https://domain.com/path/to/image.jpg';
} );