WordPress.org

Forums

Jetpack by WordPress.com
[resolved] Option for OpenGraph tags (10 posts)

  1. Christoph Nahr
    Member
    Posted 1 year ago #

    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/

  2. glidem
    Member
    Posted 1 year ago #

    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!

  3. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    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' );

  4. glidem
    Member
    Posted 1 year ago #

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

  5. Christoph Nahr
    Member
    Posted 1 year ago #

    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.

  6. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    @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/

  7. glidem
    Member
    Posted 1 year ago #

  8. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    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.

  9. glidem
    Member
    Posted 1 year ago #

    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.

  10. Christoph Nahr
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Jetpack by WordPress.com
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic