WordPress.org

Forums

Two Opengraph Descriptions (6 posts)

  1. waltergarrettmitchell
    Member
    Posted 2 years ago #

    Hey guys, so two opengraph descriptions are included in my site's head. The crappy, automatically generated one is overriding the one I'm specifying with Yoast.

    Cursory research found that Jetpack snuck in OG tags and that there's no easy way to turn them off. So I added two different lines of code that I had seen suggested:

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

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

    Neither has worked -- the redundant (and ugly) description still shows up in my head, and worse, it's still the one Facebook wants to use. Oh I also installed the "Remove Jetback Opengraph Tags" plugin with no luck.

    Either Jetpack isn't my problem (but I don't think I have any other plugins that would add OG markup) or the code/plugin isn't working. Kind of at a loss. Help?

    You can see all the markup with the rich snippet tool; the egregious description is at the very bottom.

    Thanks!

  2. Jeremy Herve
    Happiness Engineer
    Posted 2 years ago #

    We have fixed this issue in Jetpack 2.0.3, and the Open Graph meta tags are not added anymore when WordPress SEO is active.

    I noticed the extra tags on your site, but these are not added by Jetpack: you will want to check for other plugins or for a function in your theme that may be adding Open Graph Meta tags.

    For future reference, we include an HTML comment before the Jetpack Open Graph Meta tags:
    <!-- Jetpack Open Graph Tags -->

  3. waltergarrettmitchell
    Member
    Posted 2 years ago #

    Oh, ok, awesome. Thanks Jeremy. Wish whatever plugin it is was as thoughtful with their markup.

    Actually I don't think it's a plugin. I've tried deactivating the ones that could feasibly be adding the tags, with no change. I would guess it's built into the Enfinity theme, but there's no mention of it on the designer's page nor is there advice for removing them in his support forums.

    Is there anything at all to help me find where the tags are coming from? Any likely places, places theme makers tend to include this sort of thing?

    Thanks again for all your help.

  4. Jeremy Herve
    Happiness Engineer
    Posted 2 years ago #

    I would suggest checking your functions.php file, as well as the header.php file. You can also search for "og:" among all the theme files, that should help.

  5. SEOAlien
    Member
    Posted 1 year ago #

    Is there anyway to turn off the Jetpack markup for Facebook OG tags? It is conflicting with another SEO plugin I have that is generating those tags for me.

    Also, on another note, the Facebook OG tags that are generated by Jetpack do not include an <meta property="og:image" If I could fix that, all would be fine.

    Any suggestions?
    Thanks,

  6. Jeremy Herve
    Happiness Engineer
    Posted 1 year ago #

    Is there anyway to turn off the Jetpack markup for Facebook OG tags?

    You can add the following code to your theme's functions.php file to remove the Open Graph meta tags added by Jetpack.

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

    It is conflicting with another SEO plugin I have that is generating those tags for me.

    Could you let me know the name of that plugin? We maintain a list of plugins that include their own open graph meta tags, and automatically disable Jetpack's meta tags when one of these plugins is active:
    http://plugins.trac.wordpress.org/browser/jetpack/trunk/jetpack.php#L487

    If you let me know the name of the plugin you use, I can add it to the list.

    on another note, the Facebook OG tags that are generated by Jetpack do not include an <meta property="og:image"

    Jetpack will create an image meta tag if you have inserted an image into your post, but that image has to be larger than 200px x 200px, as specified in the Facebook Guidelines.

Topic Closed

This topic has been closed to new replies.

About this Topic