• Resolved ryanbednar

    (@ryanbednar)


    I’m using the Yoast SEO plugin in addition to the All-in-One Event Calendar, and when I look at the source code for an event, I’m seeing a set of open graph tags generated by Yoast SEO, and a second set of open graph tags generated by Ai1ec. The problem is that the Ai1ec tags are not correct, and Facebook sees these tags when I try to share a post. For example, the Ai1ec og:image tag value is blank, even when I have set a Featured Image for the event, which causes Facebook to choose another random image on the page, even though the Yoast SEO og:image tag value is correct.

    I found the Ai1ec file that adds the open graph meta tags, and removed the following code from the APP/CONTROLLER/FRONT.PHP file (line 889), and everything works properly, but obviously this modification won’t survive the next plugin update. Is there some way that I can remove the Ai1ec open graph markup permanently?

    $dispatcher->register_action('wp_head', array( 'view.event.single', 'add_meta_tags' ));

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    Your inquiry requires changes in the code, which unfortunately we cannot help with as part of our support. We’ll keep this topic open for a few days for other user to chime in if possible. Thanks for your understanding.

    Ben

    2fer

    (@dominolady)

    If you are still looking (as I was) and also using a child theme and you can edit a functions.php file then you can add a line in there that will prevent Yoast’s og meta tags:
    add_filter('wpseo_opengraph_url' , '__return_false' );
    I looked all over for this and found two suggestions from Yoast’s support – the other one is to go to the Yoast Dashboard and select Social which is where you can turn off the OpenGraph (FB) Meta tags.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Need to disable Open Graph markup’ is closed to new replies.