How to remove Open Graph metadata

  • Nguyen Viet
    Nguyen Viet
    Newbie 20 points
    June 15, 2019 at 10:30 am

    I see both of Coupon Theme V8.9.6 & Yoast SEO plugin support Open Graph metadata
    When sharing URL on Social networks it takes the Open Graph metadata generated by Coupon Theme V8.9.6 and I don’t want to use it. Instead of, I want to use the Yoast’s one
    So, How can I remove Open Graph metadata by Coupon Theme. I don’t want to upgrade to new V9.
    Please suggest me if you know

  • Adnan
    Elite Member 542 points
    June 17, 2019 at 9:02 pm

    You need to comment out this line in class_layout.php file

    add_action(‘wp_head’, array($this, ‘_facebookmeta’) );

  • Nguyen Viet
    Nguyen Viet
    Newbie 20 points
    June 18, 2019 at 2:42 pm

    Thank you very much for your help
    I tried the code above but it does not work
    Instead of, I removed the code of Open Graph metadata on class-layout.php file and it works now.
    Thank you very much for giving me a suggestion that check file class-layout.php file which I spent much time to search for.
    Thanks you once more!

Viewing 3 posts - 1 through 3 (of 3 total)

New Business Themes for WordPress 2020

Start your new website today!

View Business Themes