Multiple schema

#342199
  • Resolved Nina
    Rank Math free

    Hi,
    if I have product schema enabled for my single product pages, can I add oher schema types like FAQ, video, instructions etc to that page? Or would this confuse Google?

Viewing 15 replies - 1 through 15 (of 15 total)
  • Nina
    Rank Math free

    Also, I had deactivated product schema for a while and turned it back on now, and Rank Math is not updating the old product schema. How can i force the regeneration?

    Azib Yaqoob
    Rank Math business

    Hello,

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

    You can use multiple schemas like the Service Type together with Article Schemas using Rank Math PRO. Here’s a tutorial about how you can use Multiple Schema Markup types:
    https://rankmath.com/kb/multiple-schema-types/

    For the issue you are facing, kindly delete your site and browser cache and check if it resolves your issue.

    I hope that helps.

    Thank you.

    Nina
    Rank Math free

    Hi, thanks, my question is more if this would confuse google to have all different schemas on the product page.

    Nina
    Rank Math free

    I would add them with code from a generator, not Rank Math.

    Google is never confused and Rank Math works well. You just have to be more discriminating with the help you render toward other people And be sure to follow a logical order. Do not use the code at all and let the rankmath do best for you

    Anas
    Rank Math business

    Hello Nina,

    No, it will not confuse Google.

    You can use multiple Schemas on a single page(product/post).

    However, you need to make sure that the Schemas that you are adding are valid.

    You can test the URL with https://search.google.com/test/rich-results

    Also, if you are using any Generator to generate the Schema, please disable the Schema Module from the Rank Math dashboard to avoid any conflicts.

    Hope that helps.

    Thank you.

    Nina
    Rank Math free

    Thank you. But would it be possible to still use Rank Math schema for products and then add my own for FAQ with a generator? Or do they need to be in one place in the source code?

    Anas
    Rank Math business

    Hello,

    You can add your own FAQ Schema along with Rank Math Product Schema.

    However, you need to make sure that it is valid.

    Hope that helps.

    Thank you.

    Why do you insist on using code? When does Rank Math have the most complete FAQ? In any case, you can create the code and import it with the rankmath. else, you have to use “insert header and footer” plugin which I do not recommend at all. Remember, questions and answers must be in content text

    Hello @Alirezanaji,

    The user wants to add the FAQ Schema to the product pages that already have the Product Schema applied. In the free version, you can only add one Schema to a post and since Product Schema is applied, they will not be able to add another Schema using Rank Math.

    Also, we don’t provide an option to add the FAQ Schema using the Schema generator in the Free version. You can only add the FAQ Schema by using the FAQ block in Gutenberg editor.

    For the reasons mentioned above, my colleague has suggested that they should use the code to add the second Schema.

    Please don’t hesitate to get in touch in case you need any other assistance.

    Thanks.

    Nina
    Rank Math free

    Hi,
    may I ask how to get rid of the author in the product schema? Why is Rank Math adding the author who published the product to the product schema? It is unneccessary and should not be visible!

    author is for review and its necessary. For an organization or local business the role of the person or funder is important to E.A.T

    Hello Nina,

    As mentioned by @Alirezanaji, the author is required for the review Schema applied to the products. That’s why it is being applied to the product Schema as a part of the review.

    Hope this clarifies your doubts. Please don’t hesitate to get in touch in case you need any other assistance.

    Thanks.

    Nina
    Rank Math free

    But we do not have reviews enabled in Woocommerce and thus don’t even have reviews on our product pages. Still, the author who published the product is in the schema.

    Hello @Nina,

    In case you want to remove Author from the Product schema, please add the below-mentioned code to your site’s functions.php file:

    add_filter( 'rank_math/json_ld', function( $entities, $jsonld ) {
     	if ( ! is_singular( 'product' ) ) {
    		return $entities;
    	}
    
    	if ( isset( $entities['ProfilePage'] ) ) {
    		$id = $entities['ProfilePage']['@id'];
    		foreach ( $entities as $key => $entity ) {
    			if ( isset( $entity['author' ]['@id'] ) && $id === $entity['author' ]['@id'] ) {
    				unset( $entities[ $key ]['author'] );
    			}
    		}
    		unset( $entities['ProfilePage'] );
    	}
    
    	return $entities;
    }, 999, 2 );

    Here is a guide for your reference:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

    I hope this helps.

    Thank you.

    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 15 replies - 1 through 15 (of 15 total)

The ticket ‘Multiple schema’ is closed to new replies.