Support » Plugin: The SEO Framework » How to Remove og:locale

  • Resolved yassen


    How to Remove og:locale
    <meta property=”og:locale” content=”en_US” />

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Pierre LeBaux


    Hey, we take the locale from your wp installation language and pass it on to meta property.

    May I ask why you would want to remove it?

    Thread Starter yassen


    I bought a News Paper Theme, and after two weeks of preparing the site, I was surprised that the Arabic language did not support writing from right to left. I made many adjustments so that the site could not appear from right to left.
    I am afraid of reading the search engines that the site is in the English language, while the site is now showing visitors in Arabic from right to left and the manager’s Dashboard in English from left to right.

    Thank you

    Plugin Author Sybre Waaijer


    I understand 🙂

    We have a filter for that:

    // Disable og:locale
    add_filter( 'the_seo_framework_oglocale_output', '__return_empty_string' );

    Alternatively, you can specify a language:

    // Set og:locale to "ar_AR" (Arabic)
    add_filter( 'the_seo_framework_oglocale_output', function( $locale ) {
    	return 'ar_AR';
    } );

    I recommend adding those filters to your child theme’s functions.php file.

    Thread Starter yassen


    thank you very much
    it works well
    million stars

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to Remove og:locale’ is closed to new replies.