• Resolved Christoph Nahr

    (@christoph-nahr)


    I was a bit surprised when I saw this line in the latest change log:
    “◾Enhancement: OpenGraph: Add Twitter Cards meta tags as well.”

    I’m currently using a separate plugin (by Will Norris) for OpenGraph tags since Jetpack doesn’t add them, as far as I’m aware. Does Jetpack perhaps only add OpenGraph & Twitter Card tags to the wp.me snippets generated by Publicize?

    If so, could you please optionally add OG tags to the post itself so OG consumers can extract the data from the canonical post link? Might be useful to add the same option for Twitter Cards but they are perhaps a bit too heavyweight. Thanks.

    http://wordpress.org/plugins/jetpack/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Is there a way to disable Twitter Card code for Jetpack? I manually added the Twitter Card code a long time ago which works fine, but now I have two lots of code and actually Jetpack is adding it as a photo card not summary anyway!

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    I’m currently using a separate plugin (by Will Norris) for OpenGraph tags since Jetpack doesn’t add them, as far as I’m aware.

    I’m assuming you’re referring to this plugin?

    Jetpack actually does add Open Graph Meta tags and Twitter Cards to your posts. But if you’re already using another plugin to do just that, the Jetpack Open Graph meta tags are automatically deactivated to avoid duplicate tags on your site. If you were to deactivate your Open Graph plugin, you’d see that the Jetpack Open Graph meta tags and Twitter Cards will be added to your site again.

    Is there a way to disable Twitter Card code for Jetpack?

    You can add this code to your theme’s functions.php file to remove the Twitter Cards and the Open Graph Meta tags:

    add_filter( 'jetpack_enable_open_graph', '__return_false' );

    Thanks for the response, however it had no effect – the code still remains.

    Thread Starter Christoph Nahr

    (@christoph-nahr)

    If you were to deactivate your Open Graph plugin, you’d see that the Jetpack Open Graph meta tags and Twitter Cards will be added to your site again.

    That’s indeed the plugin I was using and you’re right, the OpenGraph and Twitter Card tags do appear on the site once I deactivated it! Strange, I added the other plugin because I didn’t see OG tags even though I had Jetpack. At any rate it works now, thanks.

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    @glidem Could you post your site URL here, so I can have a look?

    If you want it to remain private, you can also contact us via this contact form:
    http://jetpack.me/contact-support/

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    Thanks!

    I can see the Open Graph tags indeed. If adding the code to your theme’s functions.php file didn’t work, could you try to install this small plugin instead?
    http://i.wpne.ws/M7Le

    Let me know if it helps.

    That seems to have done the trick thanks.

    Hopefully there will be an option in the next version of Jetpack, love the plugin obviously however always handy to be able to disable individual features no matter how small.

    Thread Starter Christoph Nahr

    (@christoph-nahr)

    Another update from my end. I figured out why I had not previously seen OpenGraph tags in Jetpack: You must enable Publicize to generate meta tags. You don’t have to actually use publicize or establish any connections, but the Publicize module must be enabled for Jetpack to insert OpenGraph and Twitter Card tags.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Option for OpenGraph tags’ is closed to new replies.