Assistance Needed to Modify “inLanguage” Schema Attribute

#932152
  • Resolved parsa tajik
    Rank Math free

    Dear Rank Math Support Team,

    I hope this message finds you well. I am encountering an issue with the “inLanguage” attribute in the schema markup generated by your plugin. Currently, the value of this attribute is set to “en-US”. However, my website is targeted at English-speaking users in the UAE, and I would like to change the value of “inLanguage” to “en-AE”.

    Unfortunately, I couldn’t find an option in the plugin settings to modify this attribute directly. I also searched through my theme files but couldn’t locate where the schema is being generated.

    Could you please guide me on how to update the “inLanguage” attribute to “en-AE”? If it requires custom code, I would appreciate if you could provide a snippet or instructions to achieve this.

    Thank you for your assistance, and I look forward to your response.

    Best regards,
    parsa tajik
    https://www.sansamco.com/

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

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.

    In this case, you can use this filter to update the inLanguage in the schema:

    add_filter( 'rank_math/schema/language', function() {
    return 'en-AE'; //change the language here
    } );

    Here is a guide you can follow to add the filter:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Looking forward to helping you.

    Thank you for your prompt and helpful response. I truly appreciate your support in resolving the issue.

    Hello,

    You’re welcome.

    We are super happy that we have addressed your concern. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind us asking, could you please leave us a review (if you haven’t already) on
    https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post

    about your overall experience with Rank Math? We appreciate your time and patience.

    If you have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

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

The ticket ‘Assistance Needed to Modify “inLanguage” Schema Attribute’ is closed to new replies.