Shopify themes, liquid, logos, and UX
Hi all,
I'm strugling to create an anchor link on top of my product page, where the average rating + number of reviews is displayed (Picture 1), that would scroll down on the same page, to the detailed reviews section (picture 2). Those 2 atttributes both come from Judge.me app.
Let me know if you can help please.
Thanks !
Solved! Go to the solution
This is an accepted solution.
Hi @louis__svg,
Please go to Actions > Edit code > sections > main-product.liquid file and add code here:
Code:
<script>
document.querySelector('#shopify-block-AS1ZiTnVJRzB0NHB6c__judge_me_reviews_preview_badge_M7Neid').addEventListener('click', (event) => {
document.querySelector('#shopify-block-AWk9LTTRWVm8rN2F1a__judge_me_reviews_featured_carousel_FQdbFH').scrollIntoView();
});
</script>
Hello there,
Here is Felix from Judge.me Support team and thank you for sharing your concern.
In order for my team & I to re-check before delivering the most suitable assistance, can you kindly reach us out via our address "support@judge.me" with the URL of the page where you took the screenshot.
In case your store has a password protection, simply share it with us so we can access your site temporarily and provide a proper solution to meet your expectation.
Looking forward to hearing from you.
In your main-product.liquid or wherever Judge.me reviews are rendered, you’ll see something like this:
Wrap that in a div like this:
Or if there's already a container you can use, just add the id="judgeme_reviews_section" to it.
Wherever this part is being rendered:
Wrap it like this:
This turns the star rating / review count into a clickable link.
To ensure smooth scroll and prevent jumping, reach out below so i can give you a custom code to input
Thanks but the thing is I'm unable to locate where in the code the Judge.me reviews are rendered.
I've tried the main liquids but couldn't find it..
can you reach out below, that's the only way i can help at least
This is an accepted solution.
Hi @louis__svg,
Please go to Actions > Edit code > sections > main-product.liquid file and add code here:
Code:
<script>
document.querySelector('#shopify-block-AS1ZiTnVJRzB0NHB6c__judge_me_reviews_preview_badge_M7Neid').addEventListener('click', (event) => {
document.querySelector('#shopify-block-AWk9LTTRWVm8rN2F1a__judge_me_reviews_featured_carousel_FQdbFH').scrollIntoView();
});
</script>
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025