How to make product review section clickable on Shopify?

quiztrail
Explorer
59 0 17

Hi there,

 

I am using the Shopify Reviews app. Is there any way to make it so the section is clickable on the product page so it then scrolls them to the Reviews section straight away.

 

Screenshot9.jpg

 

My website is https://www.quiztrail.co.uk/products/whitstable-quiz-trail 

 

Thank you 

Replies 4 (4)

NomtechSolution
Astronaut
1245 113 151
  1. Locate the section of code where you want to add the clickable link. This is typically in the product description area or in a specific section of the product page template.

  2. Add an anchor tag <a> with a href attribute pointing to the ID or class of the reviews section. For example, if the reviews section has an ID of "reviews-section", your anchor tag would look like this:

 

<a href="#reviews-section">Jump to Reviews</a>

 

quiztrail
Explorer
59 0 17

Hi there,

 

Thank you for your reply. This is the code I have but I cannot work out how to add your code to it?

 

<span class="shopify-product-reviews-badge" data-id="{{ product.id }}"></span>

 

Thank you. 

NomtechSolution
Astronaut
1245 113 151

It needs javascript to add this feature. Apply move to section in js code

quiztrail
Explorer
59 0 17

Hi - can anyone help with this at all please?