Jeremy White
asked 10 years ago

My site theredshtick.com is generating open graph data even when I have all plugins deactivated, which creates a conflict when I activate my SEO plugin. I’d rather the plugin create the OG tags since it uses the full-sized feature image for the og:image tag rather than the thumbnail (150×150) size.

Jeremy White
replied 10 years ago

The duplicate tags are being generated in the theme functions file:

echo ‘‘;
echo ‘‘;
if( has_post_thumbnail() ) {
$thumb_id = get_post_thumbnail_id();
$thumb = wp_get_attachment_thumb_url( $thumb_id );
echo ‘‘;

I’ve tried deleting but it crashes the site. Please help.

3 Answers
DominicStaff
answered 10 years ago

If you want to remove graph tags in the site. Please open the function.php file, remove code  from line 474 to  line 496.
See the screenshot:

Chris Berg
answered 9 years ago

I’m trying to delete the open graph code on the DW fcus template. We use Jetpack to push our content to Facebook and other social media. Since DW Focus AND JetPack has Open Graph tags, it’s making FB mad and not showing our posts correctly (The image to be exact). What code would we need to remove? The code above is NOT in my functions.php file. Thanks

DominicStaff
answered 9 years ago

Hi,
Add this line to your functions.php file (preferably at the very bottom)
add_filter( 'jetpack_enable_opengraph', '__return_false', 99 );
Hope this helps !

Powered by DW Question & Answer Pro