Prestige theme / Header Customisation on Product page

Topic summary

A user wants to make the header transparent only on product pages in their Prestige theme Shopify store, without affecting other pages.

Current Issue:

  • The header behavior is inverted from what’s desired
  • Currently: transparent when scrolling down, opaque at the top of the page
  • Desired: transparent at the top, then changes when scrolling

Attempted Solution:
A community member provided code to add to the theme.liquid file that targets product pages specifically using conditional logic ({% if template == 'product' %}). However, this code only partially works and produces the opposite scrolling behavior.

Status:
The discussion remains open as the initial solution didn’t fully resolve the issue. The user has clarified their requirements with screenshots showing the current vs. desired header behavior, and is awaiting further assistance to correct the scrolling functionality.

Summarized with AI on November 14. AI used: claude-sonnet-4-5-20250929.

Hello,

I would like to customize the header (at product page side only) to be transparent. without impacting the header on the others pages.

URL : https://87774f-4.myshopify.com/

I have this ;

And I would like this :

Thanks and Regards

1 Like

Hello @Nory78

What is your store preview password?

1 Like

Hello @ZenoPageBuilder

please find my password : diseur

Hi @Nory78

Check this one.

  • From your Shopify admin dashboard, click on “Online Store” and then “Themes”
  • Find the theme that you want to edit and click on “Actions” and then “Edit code”.
  • In the “theme. Liquid” file. Find the tag and paste the code below before the tag.
{% if template == 'product' %}

{% endif %}
  • And Save.

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!

1 Like

Hello @Made4uo-Ribe

First of all, thank you very much for the assistance you’re providing me.

The code you provided partially works. However, it’s my fault I wasn’t clear enough in my request.

The header becomes transparent when I scroll down and is not transparent when I am at the top of the page. In fact, I would like the opposite behavior.

Please find bellow, the behavior with your code :

Top of page :

When I start scrolling :