Reveal Section On Scroll - Only On Select Pages Dawn

Reveal Section On Scroll - Only On Select Pages Dawn

marvic
Explorer
66 4 19

Hi team,

 

anyone knows how to activate the "reveal on scroll" feature for selected pages? It seems to be a theme setting and we don't want this effect all over our page but only for specific collection pages to make the journey a bit more engaging. Theme backbone is Dawn.

Any help is much appreciated!

Replies 8 (8)

Dan-From-Ryviu
Shopify Partner
10220 2032 2102

Hi @marvic 

Could you share your store URL and pages you want that section activate? 

- Helpful? Like and Accept solution! Or Support me: Buy Coffees
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

marvic
Explorer
66 4 19

Hi Dan,

the shop we're working on is not published yet! Any general advice how this could be done? It'll be some of our collection pages in the format website.com/collections/collection

I assume we'd have to do something to the collection.liquid file and maybe to the base file to load a script for the section reveal?!

Dan-From-Ryviu
Shopify Partner
10220 2032 2102

Go to your store admin > Online store > Themes > click 3 dots button > Edit code in theme you want to make scroll header, open theme.liquid file, add this code after <head> element

{%- if template.name == 'collection' -%}
<style>
.section-header { top: 0px !important; }
</style>
{%- endif -%}

- Helpful? Like and Accept solution! Or Support me: Buy Coffees
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

marvic
Explorer
66 4 19

This adds CSS to the header section?

PageFly-Oliver
Shopify Partner
878 190 184

Hi @marvic ,

 

You can try this code by following these steps:

Step 1: Go to Online Store->Theme->Edit code.

Step 2: Search file theme.liquid

Step 3: Paste the below code at the bottom of the file -> Save

 

{%- if template contains  'collection' -%}
<style>
#MainContent .section-header { top:0; }
</style>
{%- endif -%}

 

 

Hope my solution works perfectly for you!

Best regards,

Oliver | PageFly

Please let me know if it works by giving it a Like or marking it as a solution!


PageFly - #1 Page Builder for Shopify merchants.


All features are available from Free plan. Live Chat Support is available 24/7.

marvic
Explorer
66 4 19

This does not work. It also looks like the code injects CSS into the header section?

marvic
Explorer
66 4 19

This is more complex than I though

peninah
Shopify Partner
2 0 0

If anyone is still looking for this -- I wanted to disable the products animating in line by line. This CSS worked: 

#product-grid li.grid__item.scroll-trigger.animate--slide-in {
    animation: none;
    transform: none;
    opacity: 1;
}

You could add a template for non-animated collections to get a class to allow this to be easier to target.