Use the Small Twitter Card in All in One SEO
Switches the X (Twitter) card All in One SEO outputs to the compact summary card with a square thumbnail.
Opens WPIDE on
Code
add_filter( 'aioseo_twitter_tags', function ( $tags ) {
if ( is_array( $tags ) ) {
$tags['twitter:card'] = 'summary';
}
return $tags;
} );
How to add this snippet
- Install WPIDE on your WordPress site (it is free) and open Code Snippets.
- Use snippet above adds it from the library in one click. Or copy the code into a new snippet with the same code type.
- It is added inactive: review the code and settings, then switch it on.