• Resolved tunyk

    (@tunyk)


    I really like the plugin, it is much better than other analogues in terms of functionality and performance.

    But still, there is something that should be improved:
    WooCommerce
    For example, add to Schema:
    “hasMerchantReturnPolicy” (in the “offers” node)
    “shippingDetails” (in the “offers” node)

    These are important if using Merchant Center
    https://developers.google.com/search/docs/appearance/structured-data/product

    When using Polylang

    1. XML Sitemap – all pages in different languages are specified as separate entries, no rel=”alternate” hreflang
    2. HTML Sitemap (eg [rank_math_html_sitemap]) – contains links in all languages, not the current one
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter tunyk

    (@tunyk)

    And Content AI, please add the Ukrainian language to it

    Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @tunyk,

    Thank you for contacting support.

    These properties are not available by default in our plugin but you can easily extend the Schema with the filter here: https://rankmath.com/kb/filters-hooks-api-developer/#change-post-schema-data

    Here’s one example we have created that can be modified to your particular needs:
    add_filter( "rank_math/snippet/rich_snippet_product_entity", function( $entity ) { // Return policy $entity['offers']['hasMerchantReturnPolicy']['@type'] = 'MerchantReturnPolicy'; $entity['offers']['hasMerchantReturnPolicy']['applicableCountry'] = 'US'; $entity['offers']['hasMerchantReturnPolicy']['returnPolicyCategory'] = 'https://schema.org/MerchantReturnFiniteReturnWindow'; $entity['offers']['hasMerchantReturnPolicy']['merchantReturnDays'] = 30; $entity['offers']['hasMerchantReturnPolicy']['returnMethod'] = 'https://schema.org/ReturnByMail'; $entity['offers']['hasMerchantReturnPolicy']['returnFees'] = 'https://schema.org/FreeReturn'; // Shipping details $entity['offers']['shippingDetails']['@type'] = 'OfferShippingDetails'; $entity['offers']['shippingDetails']['shippingRate']['@type'] = 'MonetaryAmount'; $entity['offers']['shippingDetails']['shippingRate']['value'] = 5; $entity['offers']['shippingDetails']['shippingRate']['currency'] = 'USD'; $entity['offers']['shippingDetails']['shippingDestination']['@type'] = 'DefinedRegion'; $entity['offers']['shippingDetails']['shippingDestination']['addressCountry'] = 'US'; return $entity; });

    As for the sitemap integration with Polylang, this is well-known and our plugin doesn’t integrate with this translation plugin.

    If you would like to use a compatible translation plugin please make sure to use either Translatepress or WPML which are fully compatible with our plugin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Schema WooCoomerce + Sitemap (when use Polylang)’ is closed to new replies.