Jump to content

Archived

This topic is now archived and is closed to further replies.

tsalstrand

Turn Off DMS Open Graph

Recommended Posts

tsalstrand

I'm using WP Open Graph plugin but it is being overwritten by DMS's OG meta data.  I ran Facebook's OG Debugger and its saying that I have two OG meta data sets... How do I turn off DMS's so that I can custom control is through WP Open Graph?

 

 

Share this post


Link to post
Share on other sites
Simon

Add to child theme functions.php:

 

add_action( 'disable_facebook_headers', '__return_true' );

Share this post


Link to post
Share on other sites
Simon

The opengraph data on that page is not put there by DMS.
Here is the data in your pages source:

<!-- Open Graph data -->
<meta property="og:title" content="Title Here" />
<meta property="og:type" content="website" />
<meta property="og:url" content="http://www.convertwith.me/" />


In DMS the opengraph data looks like this ( if you have it enabled, which by default it is not )
<!-- Facebook Open Graph -->
<meta property='og:title' content='Hello!! (de)' />
<meta property='og:url' content='http://dms-theme/hello-de/' />
<meta property='og:site_name' content='dms-theme' />

 

Notice how they are different.

Share this post


Link to post
Share on other sites
tsalstrand

Simon_P, I stepped away from this because I had more pressing issues at the time. However, it's still not resolved. 

 

With the functions.php action you provided above, I was successful in ridding the DMS <!--Facebook Open Graph --> OG Data. However, I just now went in and temporarily disabled all plugins (in case one of them was adding it in) but I'm still getting the following:

 

<!-- Open Graph data -->
<meta property="og:title" content="Title Here" />
<meta property="og:type" content="website" />
<meta property="og:url" content="http://www.convertwith.me/" /> 

 

I'm using Nick Haskins' base theme and all plugins are disabled... doesn't that only leave DMS holding the bag? Maybe I'm missing something. Any thoughts? Thanks again for your help!

Share this post


Link to post
Share on other sites
Simon

The words 'Open Graph data' do not appear anywhere in DMS 1.x source code.

 

I dont know what else to suggest.

Share this post


Link to post
Share on other sites

×