Support » Plugin: Jetpack by WordPress.com » Jetpack Twitter Cards Won't Display

  • Resolved breadcrumbsguide

    (@breadcrumbsguide)


    I have jetpack installed and connected to my twitter account, and it is posting on twitter just fine. However, it won’t display my new posts on twitter as the summary_large_image card, which is already approved for my site. I added in the following code to my theme functions.php file to override Jetpack’s default card preferences, but I still can’t get jetpack to use my twitter card. Any help would be greatly appreciated!

    function tweakjp_custom_twitter_site( $og_tags ) {
    	$og_tags['twitter:site'] = '@breadcrumbsg';
    	$og_tags['twitter:card'] = 'summary_large_image';
    	return $og_tags;
    }
    add_filter( 'jetpack_open_graph_tags', 'tweakjp_custom_twitter_site', 11 );

    website: http://www.breadcrumbsguide.com
    twitter: @breadcrumbsg

    Thanks!

    https://wordpress.org/plugins/jetpack/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    Since you use the WordPress SEO plugin, Jetpack’s Twitter Cards are automatically deactivated on your site to avoid duplicate Open Graph meta tags and Twitter meta tags. Since our tags are not displayed, the code above won’t help.

    You’ll need to go to SEO > Social to configure your WP SEO Twitter meta tags. If you’d like more control over the tags created by WP SEO, I’d suggest contacting the plugin authors for help.

    breadcrumbsguide

    (@breadcrumbsguide)

    Thanks Jeremy,

    Can I just uncheck the box in SEO>Social>Add Twitter Card Metadata?

    I’d like to continue using the publicize feature of Jetpack, but still be able to use twitter cards.

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    Can I just uncheck the box in SEO>Social>Add Twitter Card Metadata?

    As long as WordPress SEO is active, Jetpack’s Meta tags won’t be displayed, so I would recommend that you keep using this WP SEO option.

    I’d like to continue using the publicize feature of Jetpack, but still be able to use twitter cards.

    You can use Publicize, Twitter Cards, and WordPress SEO without any issues. WordPress SEO’s meta tags are as good as Jetpack’s and the 2 plugins are built to work together without conflicts, so it’s totally fine to use another plugin to handle Twitter meta tags on your site, no worries there!

    breadcrumbsguide

    (@breadcrumbsguide)

    Ok thank you for answering my questions! It turns out I already had WP SEO twitter cards activated and set up, so I still don’t know why the tweets aren’t displaying as summary_large_image. I checked the meta data in my header and it seems like it should be working. I have also validated my site for summary_large_image using the twitter cards validator. This may not be an issue with WP SEO or with Jetpack, but if you have any clues as to where I should look next, I’d appreciate it!

    Thanks again!

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    Have you tried checking how Twitter sees your posts here?
    https://dev.twitter.com/docs/cards/validation/validator

    It will allow you to confirm whether your domain was approved for the summary_large_image card, and you’ll see how Twitter should display your posts. If the card works there but not on twitter.com, I would recommend posting in the Twitter forums for help:
    https://dev.twitter.com/discussions/twitter-cards

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Jetpack Twitter Cards Won't Display’ is closed to new replies.