Transparent header background problem on product page and all other pages except main menu

Topic summary

Header made transparent via theme.liquid caused the logo to overlap content on non-home pages. The goal was a fully transparent header without margin on the homepage, but transparent with spacing (no overlap) elsewhere, plus header icon color changes and sticky behavior only when scrolling up.

Fix implemented: wrap the transparency code in a Liquid conditional so it runs only on the homepage (template == ‘index’). This confines the transparent header to the homepage and prevents overlap on other pages. The OP confirmed it worked well.

Follow-up request: add right-side arrows for dropdown text in the product accordion. Solution: add Custom CSS in Theme settings:

  • #product-accordion .accordion-button::after { filter: invert(1); }
    This adjusts the arrow icon appearance (via the ::after pseudo-element) to improve visibility/contrast.

Notes:

  • Screenshots were provided to illustrate the overlap issue and desired dropdown arrows.
  • Icon color matching to the logo and sticky-on-scroll-up behavior were mentioned but not addressed further in the thread.

Status: Resolved for the homepage transparency and accordion arrow styling; other requests remain open.

Summarized with AI on December 24. AI used: gpt-5.

Hi,

I added this code before the tag in theme.liquid. It works fine on the main menu, but on the other pages, the logo overlaps the image or text below the header. I want the transparent header without margin only on the main menu but on the remaining pages I want transparent with a margin, is this a possible fix? I’m open to anything to fix this. This is the URL, www.barakatbazaar.com.
I also will attack photos to show you the problem to pages certain pages. I also want to change the colour of the icons in the header to the same as the logo. I want the logo to only be sticky when scrolled up. I hope this is not too much. I would appreciate this fix. Thanks in Advance!

Kind regards,
Ibrahim W.

Hi @IbrahimW

Please update your code into this make transparent header for the homepage only.

{% if template == 'index' %}

{% endif %}
1 Like

Thanks A Bunch!
It worked very well.

1 Like

Very welcome!

Sorry for the bother Dan, I would love it if you could help with a small fix.

I want arrows at the right side to indicate that these are dropdown texts.
I will share an image below:

Hi @IbrahimW

Please add this cod to Custom CSS in your Online Store > Themes > Customize > Theme settings

#product-accordion .accordion-button::after {
filter: invert(1);
}

1 Like

Thanks again, Dan! It is indeed people like you that make Shopify all the better.

1 Like

Thanks and welcome!