Social Media Og Graph

#308674
  • Resolved esh
    Rank Math free

    What is the way to remove the og: graph from the <HTML > tag which create a prefix of the following URL prefix=”og: https://ogp.me/ns#&#8221;

    here is an image that shows exactly what I am talking about:

    Og graph prefix

Viewing 3 replies - 1 through 3 (of 3 total)
  • Anas
    Rank Math business

    Hello,

    Thank you for contacting Rank Math.

    To remove the prefix, please add the following filter code to your theme’s functions.php file:

    add_filter( 'language_attributes', function( $input ) {
    	$input = str_replace( ' prefix="og: https://ogp.me/ns#"', '', $input );
    
    	return $input;
    }, 16 );

    I hope this helps.

    Thank you.

    esh
    Rank Math free

    It didn’t solve the issue i tried that before, Is there a way to keep it only on the meta tags

    Hello,

    The filter my colleague provided seems to be working just fine from our end as you can see in my screencast here: https://i.rankmath.com/IMtdto

    Please clear your website and browser cache and check again.

    Let us know how that goes. Looking forward to helping you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

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

The ticket ‘Social Media Og Graph’ is closed to new replies.