Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Re: Failed Transparent Header (Palo Alto)

Solved

Why isn't my Palo Alto header background transparent?

OTH3RS
Visitor
2 0 1

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

 

Accepted Solution (1)

PageFly-Oliver
Shopify Partner
878 190 184

This is an accepted solution.

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

 

<style>
#SiteHeader{
position: absolute;
width: 100%;
background: transparent;
}
#SiteHeader .header-wrapper .header{
margin-top: 20px;
}
</style>

 

 

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.

View solution in original post

Replies 4 (4)

biznazz101
Shopify Partner
494 50 94

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

 

<!--Need Help With Your Store? Contact @BIZNAZZ101 -->
{% if template == 'index' %}
 
<style>
.shopify-section-group-header-group.announcement-bar-section{
height: 5px;
}
.header-wrapper{
position: absolute;
width: 100%;
background: transparent;
}
.header-wrapper .header{
margin-top: 20px;
}
</style>

 

Hope that solves your issue!
@biznazz101 

 

Don't hesitate to reach out for more help with your store.
SEE OUR TASK STORE or check us out via our profile! FREE STORE AUDIT

PageFly-Oliver
Shopify Partner
878 190 184

This is an accepted solution.

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

 

<style>
#SiteHeader{
position: absolute;
width: 100%;
background: transparent;
}
#SiteHeader .header-wrapper .header{
margin-top: 20px;
}
</style>

 

 

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.

OTH3RS
Visitor
2 0 1

Thank you, this worked!

Made4uo-Ribe
Shopify Partner
9050 2162 2669

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;
}

 

  • And Save. 
  • Result:
  • Made4uoRibe_0-1699739059855.png
  • Note: If you need for the sticky header, Let us know. Thanks!

 

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

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.