WordPress.org

Ready to get started?Download WordPress

Forums

Jetpack by WordPress.com
[resolved] How to I disable the Open Graph meta data (7 posts)

  1. Hannes
    Member
    Posted 1 year ago #

    Hi

    I'm using another plugin to generate Open Graph meta data and with the latest update Jetpack also adds OG data. But that creates a conflict - duplicate OG data is not good.

    I can't find a way to disable the Open Graph meta data in Jetpack.

    Best regards,
    Hannes

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

  2. Hannes
    Member
    Posted 1 year ago #

    Any news on if/when this is going to be fixed?

    Or do I need to revert to Jetpack 1.9 on a few blogs?

  3. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    You can check this post to find out how to remove Jetpack Open Graph meta tags:
    http://kovshenin.com/2012/double-titles-when-sharing-on-google/

  4. palPalani
    Member
    Posted 1 year ago #

    add_filter( 'jetpack_enable_opengraph', '__return_false', 99 );

    The "jetpack_enable_opengraph" filter controls whether the Open Graph functionality loads.

    For me "jetpack_enable_opengraph" is not working, I am using the "jetpack_enable_open_graph" filter and it works well.

    add_filter('jetpack_enable_open_graph', '__return_false', 99);

  5. thomasconnery
    Member
    Posted 1 year ago #

    Jeremy and palPalani, THANK YOU! This solved my Google+ sharing problem. Simply added the line specified just before the first 'defined' statement within the jetpack.php file.

    /*
    * Plugin Name: Jetpack by WordPress.com
    * Plugin URI: http://wordpress.org/extend/plugins/jetpack/
    * Description: Bring the power of the WordPress.com cloud to your self-hosted WordPress. Jetpack enables you to connect your blog to a WordPress.com account to use the powerful features normally only available to WordPress.com users.
    * Author: Automattic
    * Version: 2.0.2
    * Author URI: http://jetpack.me
    * License: GPL2+
    * Text Domain: jetpack
    * Domain Path: /languages/
    */
    add_filter('jetpack_enable_open_graph', '__return_false', 99);

    defined( 'JETPACK__API_BASE' ) or define( 'JETPACK__API_BASE', 'https://jetpack.wordpress.com/jetpack.' );
    define( 'JETPACK__API_VERSION', 1 );

  6. KenRocker
    Member
    Posted 1 year ago #

    Easy disable jetpack opengraph with little plugin. Download:
    https://github.com/sgthemes/Remove-Jetpack-Open-Graph-Tags

  7. DrLightman
    Member
    Posted 1 year ago #

    This is just crazy, how is it possibile that after an update a so popular plugin decides to print out those meta tags so risking to break the functinality for sites that already implemented the protocol, and most likely they are not so few since Facebook integration it's so common nowadays?

    And no, Facebook doesn't like duplicate tags.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic