locale initial set-up

#255840
  • Resolved Jerónimo Yuli
    Rank Math free

    Hi!

    The company I recently joined is using rank math 🙂 when looking at the current set-up I see:

    <!– Optimización en motores de búsqueda por Rank Math PRO – https://s.rankmath.com/home –>
    <title>Tipos de aniversario: significados y nombres | Aprende Institute</title>
    <meta name=”description” content=”Conoce todos los tipos de aniversarios de bodas según los años, cómo se celebran y cada uno de sus significados. Aprende más sobre bodas aquí.”/>
    <meta name=”robots” content=”follow, index, max-snippet:-1, max-video-preview:-1, max-image-preview:large”/>
    <link rel=”canonical” href=”https://aprende.com/blog/emprendimiento/wedding-planner/tipos-de-aniversarios-de-bodas/&#8221; />
    <meta property=”og:locale” content=”es_ES” />

    og:locale is not want I want, and searching I found out that in order to change it you need to set up a filter:

    add_filter( “rank_math/opengraph/facebook/og_locale”, function( $locale ) {
    return $locale;
    });

    OR

    add_filter( “rank_math/opengraph/facebook/og_locale”, function( $content ) {
    $content = ‘nl_NL’;
    return $content;

    However, I want to find out how is this initially set-up as es_ES, I don´t see any way to configure that in wordpress.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention.

    The language code es_ES in Rank Math’s og:local meta tag will depend on the default site language you have set up in WordPress. You can find it on your WordPress dashboard > Settings > General > Site Language

    Site Language

    I hope that helps.

    Thank you, and please don’t hesitate to contact us anytime if you need further assistance with anything else.

    Thanks for the quick response.
    It´s odd not having a separate option for locale, we have different es options (es_LA, es_MX, etc).

    That being said, which is the correct way to change it if this is not a bug? (I want to use es_LA, already checked that it´s one of the approved ones here: https://developers.facebook.com/docs/messenger-platform/messenger-profile/supported-locales/)

    Hello,

    You can change the og:locale tag by changing the language of your site from the WordPress dashboard. If you want to keep the language of your backend as it is then please use the filter that you have mentioned, in your theme’s functions.php file.

    Let us know how that goes. Looking forward to your update.

    Thanks.

    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 ‘locale initial set-up’ is closed to new replies.