Shopify themes, liquid, logos, and UX
Hello Guys,
I am facing issue on product page when click on button page not goto scroll down. Attached is screenshot I highlited in red color button when click on it page should be scroll down
Here is product page https://imperialhighlandsupplies.com/products/abbotsford-check-tartan
Here is code i am use.
Thank you
{% if product.type == 'Tartan Finder' %} <style> #go_down { background: #3b0e57; color: #fff; border: 1px solid #3b0e57; padding: 5px 10px; cursor: pointer; font-size: 16px; margin: 15px 0; width: 100%; font-weight: bold; } </style> <div style="text-align:center;"> <div id ="go_down">View Products in {{ product.title }}</div> </div> <div class="addthis_inline_share_toolbox"></div> <script> $("#go_down").click(function() { $('html,body').animate({ scrollTop: $("#shopify-section-template--17448925298850__featured_collection_QT37GX").offset().top}, 'slow'); // window.location.href = '/collections/tartan-finder'; }); </script> {% endif %} {% unless product.type == 'Tartan Finder' %} <style> #shopify-section-template--17448925298850__featured_collection_QT37GX { display: none; } </style> {% endunless %}
Hi @Everything1
This is Richard from PageFly - Shopify Page Builder App
Regarding your concern, simply update your js code to be like this
$("#go_down").click(function() {
$('html,body').animate({
scrollTop: $('[data-section-type="featured-collection"]').offset().top},
'slow');
});
Hope this can help you solve the issue
Best regards,
Richard | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
➜ Optimize your Shopify store with PageFly Page Builder (Free plan available)
All features are available from Free plan. Live Chat Support is available 24/7.
Thanks for your reply. code not work after paste the code button look like this
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025