how to prevent all product attributes to create permalink.

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

    If the errors appear on your product taxonomy pages, please enable the option to remove snippet data in Rank math > Titles & Meta > Taxonomy page.

    If the errors appear on your product pages, please note that Rank Math takes the schema data from your product pages automatically and turns it into Schema-ready content. Likewise, the aggregateRating and review fields are taken from your actual product reviews that your buyers/customers leave on your products.

    If you don’t have any reviews yet, that is going to show up as a warning in the schema testing tool. That’s because Google will actually look for those fields.

    Please acquire some reviews and ratings to get rid of the aggregateRating and review warnings.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Thank you for your prompt response. As seen in my attached images, the error is on the page created by product attributes which, as per my understanding, is taxonomy, right ?

    In order to remove snippet data, i have to browse through all attributes, one by one, for over hundreds attributes. So i asked you if there is a way to simply disable all attributes once.

    https://i.imgur.com/aBbsnlI.png

    Hello,

    You can customize the following filter to remove the markup from your taxonomy pages

    /**
     * Allow developers to remove snippet data from Taxonomies.
     *
     * @param bool $unsigned Default: false
     * @param string $unsigned Taxonomy Name
     */
    add_filter( 'rank_math/snippet/remove_taxonomy_data', function( $value, $taxonomy ) {
    	return $value; // true or false
    }, 10, 2);

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.
    ​​​​​​

    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 ‘how to prevent all product attributes to create permalink.’ is closed to new replies.