Shopify themes, liquid, logos, and UX
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!
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.
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?!
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.
This adds CSS to the header section?
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.
This does not work. It also looks like the code injects CSS into the header section?
This is more complex than I though
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.
As 2024 wraps up, the dropshipping landscape is already shifting towards 2025's trends....
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024