Need to disable Open Graph markup
-
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
- The topic ‘Need to disable Open Graph markup’ is closed to new replies.