<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@nytimesbits">
<meta name="twitter:creator" content="@nickbilton">
<meta property="og:url" content="bits.blogs.nytimes.com/2011/12/08/a-twitter-for-my-sister/">
<meta property="og:title" content="A Twitter for My Sister">
<meta property="og:description" content="In the early days, Twitter grew so quickly that it was almost impossible to add new features because engineers spent their time trying to keep the rocket ship from stalling.">
<meta property="og:image" content="graphics8.nytimes.com/images/2011/12/08/...tter-tmagArticle.jpg">
alzander wrote: We're planning deeper Twitter Card support later this year. Right now, we support only the Summary card (the default, recommended Card type). We'll have more options for setting Twitter card settings, like "site" and "creator" sitewide later on, along with options for overriding the tags on a per-page basis, similar to what we have with Open Graph tags right now.
If you want help forcing the creator and site tags on your site for all pages, we can help with that right now as it's just a few lines of code. It's more difficult if you need control over those tags on a per-page basis.
Thanks,
Alex
// Basic Twitter Card support
if($this->name == 'og:title')
$graphValue .= '<meta name="twitter:title" content="' . $tagValue . '"/>' . CARRIAGE_RETURN;// Basic Twitter Card support
if($this->name == 'og:title')
{
$graphValue .= '<meta name="twitter:title" content="' . $tagValue . '"/>' . CARRIAGE_RETURN;
$graphValue .= ' <meta name=”twitter:site” content=”@yourusername”>' . CARRIAGE_RETURN;
}this code not work! when i'm add this code, i just see blank:page (white page). i'm no can see site, if i add this code.alzander wrote: To add that tag now, edit the /libraries/sourcecoast/openGraph.php file. Around line 298, you'll see:
Update that to:// Basic Twitter Card support if($this->name == 'og:title') $graphValue .= '<meta name="twitter:title" content="' . $tagValue . '"/>' . CARRIAGE_RETURN;That should get you going for now. Please let me know if that helps do what you're looking for.// Basic Twitter Card support if($this->name == 'og:title') { $graphValue .= '<meta name="twitter:title" content="' . $tagValue . '"/>' . CARRIAGE_RETURN; $graphValue .= ' <meta name=”twitter:site” content=”@yourusername”>' . CARRIAGE_RETURN; }
Thanks,
Alex
Join our newsletter to get alerts for Joomla releases, tips and tricks and extension updates.
