• Resolved mendelistickmend

    (@mendelistickmend)


    Hello Ladies and gentlemen

    since I installed Rank Math, I noticed my <html lang=”en”> changed to <html lang=”en” class=”” data-skin=”light” prefix=”og: https://ogp.me/ns#”&gt; please how do I go back to <html lang=”en”>

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @mendelistickmend,

    Thank you for your query and we are so sorry about the trouble this must have caused.

    Please try applying this code to remove the open graph attribute.

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

    return $input;
    }, 16 );

    You may refer to this guide on how to add filters to your website: https://rankmath.com/kb/wordpress-hooks-actions-filters/

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

    Thread Starter mendelistickmend

    (@mendelistickmend)

    Half worked it is now displaying <html lang=”en” class=”” data-skin=”light”> instead of <html lang=”en”>

    Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @mendelistickmend,
    ?
    The other property is not coming from our plugin as we don’t have any of that in our source code so it must be coming from somewhere else.
    ?
    It’s also important to note that removing the tag that you did will prevent the OpenGraph data from working correctly so when you share pages of your website on social media that uses that such as Facebook you won’t get the expected results.
    ?
    Don’t hesitate to get in touch if you have any other questions.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘I want this tag gone from my please’ is closed to new replies.