How to remove Open Graph metadata

WordPress Business Themes Forums Responsive Themes Coupon Theme How to remove Open Graph metadata

Discontinued - The forum content is out of date. For theme support please use our support desk here.

How to remove Open Graph metadata

June 15, 2019
Nguyen Viet Nguyen Viet
  • Nguyen Viet
    Nguyen Viet
    Newbie 20 points

    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
    Thanks,

    June 15, 2019 at 10:30 am
  • Adnan
    Adnan
    Elite Member 441 points

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

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

    June 17, 2019 at 9:02 pm
  • Nguyen Viet
    Nguyen Viet
    Newbie 20 points

    Thank you very much for your help
    Adnan,
    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!

    June 18, 2019 at 2:42 pm
Viewing 3 posts - 1 through 3 (of 3 total)

Didn't find what you were after?

Chat with us now

or contact our support team