Viewing 4 replies - 1 through 4 (of 4 total)
  • 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

    (@yassenalshaar)

    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

    (@cybr)

    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

    (@yassenalshaar)

    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.