Shopify themes, liquid, logos, and UX
I want to make my header transparent and overlay on top of my image banner - see website link for example of what I'm looking to achieve. I'm using the Craft theme.
Many thanks!
@Krissiloula add below css into base.css file
.gradient {
background: transparent !important;
}
This just takes the announcement bar away
To make the header transparent and overlay it on top of the image banner in the Craft theme, you can follow these steps:
header.liquid
or header-section.liquid
.
.site-header {
background-color: transparent;
position: absolute;
top: 0;
left: 0;
right: 0;
z-index: 999;
}
.site-header__inner {
background-color: transparent;
padding: 20px; /* Adjust the padding as needed */
display: flex;
justify-content: space-between;
align-items: center;
}
Thanks for your reply, however this isn't working and the code just shows up as text in the actual header bar.
@Krissiloula Try below one it might be like to you :
@media (min-width:768px){
.gradient {
background: rgba(255, 255, 255, 0.47);
border-radius: 16px;
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(1.6px);
-webkit-backdrop-filter: blur(1.6px);
border: 1px solid rgba(255, 255, 255, 0.22);
}
}
or provide preview link or store link
Craft theme make transparent header:
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024