i have a magento 2 website . In that i have home , about , contact , product pages .
1) I am generating snippest using https://technicalseo.com/tools/schema-markup-generator/ tool . So how can i insert this in my page ? . Can i write paste this code in content ? in which php file i can write this schema code ?
For example my home page id is 1 , about 2 etc
i have different schecam for each page . So in which pah page i can write if(id==1){schema 1 } if (id==2){ schema 2 }
etc .
2) I am getting this error in search console . How can i solve this using code . Like if the product don't have any aggregate rating then make the aggregate rating as 5 etc
来源:https://stackoverflow.com/questions/57644307/magento-2-search-console-error-google-structured-data-rich-snippets