Home › Forums › Support › adding aggregateRating for my website This topic has 10 replies, 3 voices, and was last updated 7 months, 1 week ago by David. Viewing 11 posts - 1 through 11 (of 11 total) Author Posts August 11, 2022 at 11:15 pm #2310596 Sima I have created the following hook but when I test my website for google rich results, I do not see this property. { "@context": "https://schema.org/", "@type": "CreativeWorkSeries", "name": "", "aggregateRating": { "@type": "AggregateRating", "ratingValue": "4.9", "bestRating": "5", "ratingCount": "17" } } August 12, 2022 at 4:44 am #2310802 DavidStaff Customer Support Hi there, can you share a link to the page where this should be displayed? And can you confirm how you used a Hook to add this ? Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ August 12, 2022 at 10:39 am #2311234 Sima Hello David, I added to WP_head and elected entire site for display rule. When I check my website URL at https://search.google.com/test/rich-results I expect to see Review Snippets but I do not. August 12, 2022 at 11:25 am #2311282 YingStaff Customer Support It looks like it’s been inserted into thebody_open hook. If you’ve made changes to the hook, make sure cache is cleared. August 12, 2022 at 11:33 am #2311294 Sima I have cleared cache. and I have not inserted it into body_open hook. Pleae let me know what I should do. thanks August 12, 2022 at 12:18 pm #2311336 YingStaff Customer Support From what I can see, it’s in body not head: https://www.screencast.com/t/w1NNCaPtBPMk Can you disable your cache plugin if you are using one and if you have server-level cache enabled, can you disable that as well? If it still doesn’t work, could you provide admin login to your site so we can take a look at the backend? August 12, 2022 at 8:24 pm #2311505 Sima It still does not work. August 13, 2022 at 9:03 am #2311917 DavidStaff Customer Support That code has to be wrapped in script tags ‹script type="application/ld+json"> your code here </script> Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ August 13, 2022 at 10:37 am #2311993 Sima Hello David, Thanks for your comment. Does this need to be added to hook? I did, and when testing the code with the rich test result, it returns an error “item not detected.” I August 13, 2022 at 7:34 pm #2312153 Sima never mind. I figured out. August 14, 2022 at 4:08 am #2312349 DavidStaff Customer Support Glad to hear that! Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ Author Posts Viewing 11 posts - 1 through 11 (of 11 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In