Okay
  Public Ticket #248945
OpenGraph loaded twice, when Wordpress Jetpack Publicize feature in use
Closed

Comments

  •  1
    Niklas started the conversation

    Hi! I'm using the wordpress jetpack plugin and it's publicize feature. When activating this feature, it automatically adds opengraph tags to the page and there is no option to deactivate it.

    Because your theme adds opengraph tags, too, facebook sometimes has problems parsing the page.

    I added the following code in the themes functions.php

    add_filter( 'jetpack_enable_open_graph', '__return_false' );

    before this code at the end of the file:

    add_action( 'wp_head', 'add_opengraph', 5 );

    That leads to the opengraph tags not beeing added by the jetpack plugin. I think for people using the jetpack plugin, it would be great if you add it to your code :)

  •  1,070
    ThemeNectar replied

    Hey Niklas! Thanks for pointint this out - i'll handle it in the next minor update :)

    Cheers

  •  1
    Niklas replied

    Thanks :)