[Resolved] prefix=”og:http://ogp.me/ns#”

Home Forums Support [Resolved] prefix=”og:http://ogp.me/ns#”

Home Forums Support prefix=”og:http://ogp.me/ns#”

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1574815
    Eugene Lemuel

    I don’t know if this code is already hurting my site as I’m losing significant traffic. But there might be other factors. When I use the browser inspection tool, I see this code right after <!DOCTYPE html>: <html lang=”en-US prefix=”og:http://ogp.me/ns#”&gt;. I know it’s the open graph protocol but their site is already in HTTPS. And their markup code is <html prefix=”og: https://ogp.me/ns#”&gt;. Is there a way to get rid of it? Is it my Marketer theme that is causing it or a plugin?

    But if I check Generatepress.com and other sites using GeneratePress, the OGP code is not there. Instead, I only see <html lang=”en-US”>.

    #1574846
    Leo
    Staff
    Customer Support

    Hi there,

    I’m not seeing that code in the default Marketer template:
    http://gpsites.co/marketer/

    Perhaps it’s added by another plugin?

    #1574849
    Eugene Lemuel

    You’re right. My SEO plugin has added it.

    #1574852
    Leo
    Staff
    Customer Support

    Glad to hear 🙂

    #1574873
    Eugene Lemuel

    I’ve found a hook to remove Open Graph tags from my SEO plugin documentation. Can I use it in the Hooks Element?

    /**
    * Hook to remove og:tags
    */
    add_action( ‘rank_math/head’, function() {
    remove_all_actions( ‘rank_math/opengraph/facebook’ );
    remove_all_actions( ‘rank_math/opengraph/twitter’ );
    });

    #1574883
    Leo
    Staff
    Customer Support

    No – that should be added using one of these methods:
    Adding PHP: https://docs.generatepress.com/article/adding-php/

    #1574897
    Eugene Lemuel

    I see. I tried the code in Code Snippets but didn’t solve the issue. I already opened a ticket for the support team of my SEO plugin since it’s a plugin issue. Thanks a lot for the help, Leo.

    #1574902
    Leo
    Staff
    Customer Support

    No problem 🙂

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.