Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Rank Math SEO

    (@rankmath)

    Hello @whydack

    Thank you for contacting the support.

    We have seen that Google shows the Schema data in the search results sometimes instead of the SEO title, that’s why the default value of the Schema Markup’s title is set to the SEO title.

    If you want to change that, please add the following code in your theme’s functions.php file:

    add_filter( 'rank_math/snippet/rich_snippet_product_entity', function( $entity ) {
        $entity['name'] = 'Product Title';
        return $entity;
    });

    You can read more about this here:
    https://rankmath.com/kb/filters-hooks-api-developer/#change-post-schema-data

    Hope that helps.

    Thread Starter Coffee Roaster from PL

    (@whydack)

    Many thanks!

    One more thing – why there are no data for the WEIGHT in structured data, although it is filled for each variant of this product in Woocomerce?

    Plugin Author Rank Math SEO

    (@rankmath)

    Hello @whydack

    We have added only the required and most recommended fields in the Schema Markup.

    If you want, you can extend the Schema by utilizing the filters from here:
    https://rankmath.com/kb/filters-hooks-api-developer/#richsnippets

    Hope that helps. Thank you.

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

The topic ‘Schema.org – generated product name / title’ is closed to new replies.