Why isn't my Palo Alto header background transparent?

Hello, I’m having trouble creating a transparent background for my header. Im using a logo image and that’s it. The image is a PNG so I’m not sure as to why this is not working.

Website: www.oth3rslifestyle.com

Go to Themes> “…”> Edit Code> Header.liquid> Add this code above the /body tag> Save


{% if template == 'index' %}
 

Hope that solves your issue!
@biznazz101

Hi @OTH3RS ,

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


Hope my solution works perfectly for you!

Best regards,

Oliver | PageFly

Hi @OTH3RS

Try this one. 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 “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
hide-header header#SiteHeader {
    background-color: transparent;
}
main#MainContent {
    margin-top: -60px;
}
img.section-image__image.lazyautosizes.ls-is-cached.lazyloaded {
    height: 100vh;
}

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

Thank you, this worked!