Make header transparent in Craft theme

Make header transparent in Craft theme

helloforeve
Visitor
2 0 1

How do I make my header transparent? https://4k3l273x1hl7ijog-66317877397.shopifypreview.com

Replies 6 (6)

WizzCommerce_Co
Trailblazer
180 26 41

Hi @helloforeve , thank you for posting here!

You can follow my instruction below:

Please add this code to your theme.liquid above the </head> to get this solved

Step 1: Online Stores > Themes > More Actions > Edit code

Step 2: Click on theme.liquid and paste the code above the </head>

<style>
nav#navbar-mobile {
background-color: transparent !important;
    position: fixed;
    left: 0;
    right: 0;
}
</style>

If my answer is workking for your store, please let me know by Accepting Solution and Giving Like !!!

Skyrocket BFCM with Wizz's apps: BOGO+ Buy X Get Y Free Gift
| Wizz Flash Sale & Price Edit | Snap B2B Wholesale Pricing | Snap Product Page Coupon | Snap Presale & Backorder | SnapNoti FOMO Visitor Counter | SnapBundle Volume Discounts
Find more support, feel free to contact: support@wizzcommerce.io
If our suggestion is useful for your problem, please let us know by giving Like and Accept Solution !!!

Moeed
Shopify Partner
7092 1905 2335

Hey @helloforeve 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
@media screen and (min-width: 768px) {
.header-wrapper.color-scheme-1.gradient {
    background: transparent !important;
}
main#MainContent {
    margin-top: -150px !important;
}
}
</style>

RESULT:

Moeed_0-1719504685131.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


helloforeve
Visitor
2 0 1

Hi! Thank you, but now my other pages don't look right - the content all shifts up as well. Can you advise? https://4k3l273x1hl7ijog-66317877397.shopifypreview.com

Will like the header to be the default theme on hover as well.

BSSCommerce-HDL
Shopify Partner
2305 835 908

Hi @helloforeve

Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

Step 2: Search file theme.liquid

Step 3: Inside head tags. You need create style tags. After insert my code inside style tag

BSSCommerceHDL_1-1719504550641.png

 

header.header.header--top-center {
    background-color: transparent !important;
    position: fixed !important;
    max-width: 100%;
    width: 100vw;
}

Here is result: 

BSSCommerceHDL_2-1719504577438.png

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍

 

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

PageFly-Henry
Shopify Partner
1184 335 297

hi @helloforeve 

This is Henry from PageFly - Landing Page Builder App

 

You can try this code by following these steps: 

Step 1: Go to Online Store->Theme->Edit code. 

Step 2: Search file base.css

Step 3: Paste the below code at bottom of the file -> Save

 

.header-wrapper.color-scheme-1.gradient {

    position: absolute;

    width: 100%;

    background: transparent !important;

}

 

Hope that my solution works for you.

Best regards,

Henry | 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.

Dan-From-Ryviu
Shopify Partner
11360 2225 2399

Hi @helloforeve 

Please go to your Online Store > Themes > in Craft theme, click "..." > Edit code, open theme.liquid file, after <head> paste this code below and save file.

{% if template == 'index' %}
<style>
.header-wrapper { background: transparent !important; }
#MainContent { margin-top: -137px; }
@media (max-width: 749px) {
#MainContent { margin-top: -64px !important; }
}
</style>
{% endif %}

Screenshot 2024-06-28 at 11.22.02.png

 

- Found this helpful? Hit "Like" and "Accept as Solution"!
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
Built for Shopify

Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...
Sign up now.