Topic-icon Replace twitter meta tags

Active Subscriptions:

None
11 years 3 months ago - 11 years 3 months ago #51620 by klox7
Hello,

I would like to use this twitter tag <meta name="twitter:card" content="summary_large_image"> for twitter card but I don't know how to override what JFB creates. For FB I know I can use for. ex. {SCOpenGraph...} but what do I use for Twitter.

Regards.
Last edit: 11 years 3 months ago by klox7.
The topic has been locked.
Support Specialist
11 years 3 months ago #51626 by alzander
Replied by alzander on topic Replace twitter meta tags
We don't currently have a way to set the Twitter card tags individually. For now, you'd need to make an edit to our code to force the tag. To do so, edit the /libraries/sourcecoast/OpenGraph.php file. Around line 394, you'll see:
else if($this->name == 'og:type' && !in_array('twitter:card', $skipGraphFields))
                $graphValue .= '<meta name="twitter:card" content="summary"/>' . CARRIAGE_RETURN;
Update away!

I hope that helps,
Alex
The topic has been locked.