Yotpo advised removing a block of Shopify theme code so product reviews appear in Google search results; the poster sought assurance that deletion wouldn’t cause issues, but Shopify support declined to advise.
Recent details:
The code targeted spans lines 660–704 (shared via screenshots). The initially shared admin URL was corrected to the public store at danielsandler.com.
Suggested approach:
Comment out the identified code instead of deleting, then test whether reviews surface in Google and confirm no site errors.
If Yotpo is later uninstalled, remember to un-comment the code.
Ask Yotpo to update the structured data (application/json / JSON-LD) to include the “aggregateRating” parameter, which helps Google display star ratings and review counts.
Technical context:
“application/json” here refers to JSON-LD schema markup for products. “aggregateRating” is a schema.org field that signals the overall rating and review volume to search engines.
Status:
No confirmed resolution yet. Action items are to test the commented-out change and consult Yotpo about structured data updates.
Screenshots with code lines are important to understand the proposed change.
Summarized with AI on December 30.
AI used: gpt-5.
HI all, ive been advised by YOTPO to delete some code on shopify so that my reviews appear in google search. They also advised that before I did this that I speak with Shopify to confirm that this would not have any adverse effects - Ive tried speaking with shopify but they say theyre not qualified to answer this question. Anybody else been in this situation? Or can advise?
It would seem its a very easy thing to do, ive found the code etc - im just concerned about deleting it and causing more problems.
You can comment out the code for now instead of removing it and check if this resolves your issue and not cause any other error.
If this works out, make sure to un-comment it if you remove the Yotpo app in future.
The code is almost the same except 1 -2 parameters.
You can even check with app support if they can update the default application/json by adding “aggregateRating” parameter there if this can resolve the issue.
If you’d like to discuss this more, don’t hesitate to send me a PM.
If this information was helpful to you, please give it a Like. If it resolved your issue, kindly hit Like and mark it as the Solution! Thank you!