laaabaseball
Chevereto Member
https://dev.twitter.com/docs/cards
I originally suggested it and it was put into 2.5, but I don't see it in 3.0, so I created a hacky way to put it into 3, hope to help if anyone needs.
In your theme folder,
add to image.php just below <?php G\Render\include_theme_header(); ?>
Obviously replace the Twitter account and website name with your own
Edit: should state that in a non-hacky verson of doing this, this would be placed in the header.php file, but Twitter scans the whole page so this works.
I originally suggested it and it was put into 2.5, but I don't see it in 3.0, so I created a hacky way to put it into 3, hope to help if anyone needs.
In your theme folder,
add to image.php just below <?php G\Render\include_theme_header(); ?>
Code:
<meta name="twitter:card" content="photo">
<meta name="twitter:site" content="@chevereto">
<meta name="twitter:creator" content="@chevereto">
<meta name="twitter:title" content=" <?php echo get_image()["description"]; ?>- chevereto.com">
<meta name="twitter:image" content=" <?php echo get_image()["url"]; ?>">
<meta name="twitter:image:width" content=" <?php echo get_image()["width"]; ?>">
<meta name="twitter:image:height" content=" <?php echo get_image()["height"]; ?>">
Obviously replace the Twitter account and website name with your own
Edit: should state that in a non-hacky verson of doing this, this would be placed in the header.php file, but Twitter scans the whole page so this works.