Dawn Theme - Shop Page - Question About Collections

Dawn Theme - Shop Page - Question About Collections

tgdbling
Tourist
7 0 0

On my SHOP page, I have COLLECTIONS right under the main header section: https://tgdbling.com/collections/all

 

When I click on a collection, it loads the correct products, but it doesn't move the screen down to the actual products... the page stays anchored at the top of the page... which I find to awkward. At first glance, it can appear that the link doesn't take the user anywhere.

 

Is there a way to change this? Can I set an anchor tag or something so that it functions intuitively? Thanks so much. 

Replies 3 (3)

Guleria
Shopify Partner
4181 812 1168

Hello @tgdbling ,

 

Try to add this script in theme.liquid just before the </body> tag

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
{% comment %} Don't use above library if its already availabe. {% endcomment %}
<script>
$(document).ready(function(){
 $('html, body').animate({
        scrollTop: $(".collection-list-wrapper").offset().top
    }, 2000);
});
</script>

 

Thanks

 

- Custom themes, UI/UX design, ongoing maintenance & support.
- Drop an email   if you are looking for quick fix or any customization
- Email: guleriathakur43@gmail.com Skype: live:navrocks1
- Try GEMPAGES a great page builder
tgdbling
Tourist
7 0 0

Thank you I will try it and let you know! Thank you for your response!!!

tgdbling
Tourist
7 0 0

So I've done it.... I refreshed my browser and checked it and no change. I also checked it in a different browser in case it was a cache issue, no change. 

 

So I'm open to other suggestions and options. Thank you so much. 

 

Screenshot 2022-11-19 at 12.50.10 PM.png