How to create transparent header

Solved

How to create transparent header

YIVAN
Explorer
51 1 16

Hello,

 

I'm trying to create a transparent header with white text that turns black on scroll. I've tried various codes but a problem always occurs. I also need it to work on mobile.

Here is a perfect example of what I'm looking for - https://rh-ude.com/

URL: https://www.yivan.us/

Pass: YV2024

Thank you very much

 

Accepted Solution (1)
BSSCommerce-HDL
Shopify Partner
2305 848 1065

This is an accepted solution.

Hi @YIVAN

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

Step 2: Search file theme.liquid

Step 3: Find my code in the theme.liquid file and insert this new code inside the style tag

BSSCommerceHDL_0-1717906099277.png

Code: 

@media only screen and (max-width: 767px) {
   body:has(.header--has-menu.transparent) img.header__heading-logo {
     height: 80px;
   }
}

 

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

View solution in original post

Replies 8 (8)

BSSCommerce-HDL
Shopify Partner
2305 848 1065

Hi @YIVAN

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

BSSCommerceHDL_0-1717809598993.png

 

Step 2: Search file base.css, theme.css, styles.css, custom.css or theme.scss.liquid

BSSCommerceHDL_1-1717809606225.png

 

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

.header {
  max-width: 100% !important;
}


body:has(.header--has-menu.transparent) ul.list-menu.list-menu--inline a span,
body:has(.header--has-menu.transparent) .header__menu-item.list-menu__item span,
body:has(.header--has-menu.transparent) .header__menu-item.list-menu__item svg.icon.icon-caret,
body:has(.header--has-menu.transparent) .header__icon .icon
{
    color: white !important;
}

body:has(.header--has-menu.transparent) img.header__heading-logo {
    filter: invert(1) !important;
}

Here is result: 

BSSCommerceHDL_2-1717809685895.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

YIVAN
Explorer
51 1 16

Hello, thank you for your time. However, when I tried to paste the code at the bottom of the base.css file nothing changed.

BSSCommerce-HDL
Shopify Partner
2305 848 1065

Hi @YIVAN

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 it

BSSCommerceHDL_0-1717811116042.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

YIVAN
Explorer
51 1 16

Unfortunately, that also did not fix the issue.

header.PNG

YIVAN
Explorer
51 1 16

Is there a way to make the mobile header a bit higher.

Screen Shot 2024-06-08 at 9.04.18 PM.png

BSSCommerce-HDL
Shopify Partner
2305 848 1065

This is an accepted solution.

Hi @YIVAN

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

Step 2: Search file theme.liquid

Step 3: Find my code in the theme.liquid file and insert this new code inside the style tag

BSSCommerceHDL_0-1717906099277.png

Code: 

@media only screen and (max-width: 767px) {
   body:has(.header--has-menu.transparent) img.header__heading-logo {
     height: 80px;
   }
}

 

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

MRamzan
Shopify Partner
313 3 35

Make transparent header:

 

Hire Me:

WhatsApp: +91-9145985880
Email: mohdramzaan112@gmail.com
Skype: mohdramzaan112

MRamzan
Shopify Partner
313 3 35

Create transparent header:

 

Hire Me:

WhatsApp: +91-9145985880
Email: mohdramzaan112@gmail.com
Skype: mohdramzaan112