Re: How to Only Change the Color of the Page Overlay when the Drawer Nav is Engaged?

Solved

How to Only Change the Color of the Page Overlay when the Drawer Nav is Engaged?

RGap
Excursionist
17 1 6

Hi,

 

I want to change the overlay color to a medium gray where the red arrow points on the screenshot (a shot of when the drawer nav is engaged/clicked on). I know I can change it by going to the color scheme of the header. The problem is it also changes the color of the header icons, which I don't want. I only want the color of the overlay on the page to change.

 

Thanks!

 

landing_nav_engaged.jpg

Accepted Solutions (2)
BSSCommerce-TC
Shopify Partner
225 49 51

This is an accepted solution.

Hi @RGap ,

 

You can replace the previous code with this code.

.header__icon--menu[aria-expanded=true]:before {
    background: rgba(128, 128, 128, 0.4) !important;
}

 

And result is:

BSSCommerceTC_0-1720953711471.png

 

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


MIDA: Heatmap, Record & Replay |BLOOP Referral Program, Reward |

Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency

View solution in original post

BSSCommerce-TC
Shopify Partner
225 49 51

This is an accepted solution.

Hi @RGap ,

 

You can change the final parameter.

 

background-color: rgba(128, 128, 128, 0.8); /* with 80% opacity */

 

 

 

background-color: rgba(128, 128, 128, 0.4); /* with 40% opacity */

 

If our suggestions are useful, please let us know by giving it a likemarking it as a solution. Thank you very much

 

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


MIDA: Heatmap, Record & Replay |BLOOP Referral Program, Reward |

Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency

View solution in original post

Replies 13 (13)

BSSCommerce-TC
Shopify Partner
225 49 51

Hi @RGap ,

 

Can you kindly share your store link (with the password, if any) and color code with us? We will help you

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


MIDA: Heatmap, Record & Replay |BLOOP Referral Program, Reward |

Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency
RGap
Excursionist
17 1 6
BSSCommerce-TC
Shopify Partner
225 49 51

Hi @RGap ,

 

You can follow these steps

Step 1: Go to Online store > Themes > Edit code and find base.css file

Step 2: Insert below code at the end file and Save them

#shopify-section-template--17576754315427__rich_text_bEUCVa {
   position: relative !important;
}

section#shopify-section-template--17576754315427__rich_text_bEUCVa:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(128, 128, 128, 0.4);
    pointer-events: none;
    z-index: 1;
}

 

And this is final result you want.

BSSCommerceTC_0-1720952668524.png

 

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


MIDA: Heatmap, Record & Replay |BLOOP Referral Program, Reward |

Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency
RGap
Excursionist
17 1 6

It didn't work.

BSSCommerce-TC
Shopify Partner
225 49 51

Hi @RGap ,

I have checked and there is an overlay color layer. Is this the result you were expecting? Please provide more details. We are always ready to help you.

Before:

BSSCommerceTC_0-1720953306485.png

 

After:

BSSCommerceTC_1-1720953322987.png

 

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


MIDA: Heatmap, Record & Replay |BLOOP Referral Program, Reward |

Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency
RGap
Excursionist
17 1 6

That is what I want but it's not showing on my end after I added your code. 

BSSCommerce-TC
Shopify Partner
225 49 51

This is an accepted solution.

Hi @RGap ,

 

You can replace the previous code with this code.

.header__icon--menu[aria-expanded=true]:before {
    background: rgba(128, 128, 128, 0.4) !important;
}

 

And result is:

BSSCommerceTC_0-1720953711471.png

 

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


MIDA: Heatmap, Record & Replay |BLOOP Referral Program, Reward |

Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency
RGap
Excursionist
17 1 6

Great, that worked. 

 

If I want to use a different color I can just change the rgb numbers, yes?

BSSCommerce-TC
Shopify Partner
225 49 51

Hi @RGap ,

Exactly. If you want any specific color code, please let us know. We can help you.

 

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

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


MIDA: Heatmap, Record & Replay |BLOOP Referral Program, Reward |

Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency
RGap
Excursionist
17 1 6

Is there a way to change the opacity of the overlay? At what level is it now?

BSSCommerce-TC
Shopify Partner
225 49 51

This is an accepted solution.

Hi @RGap ,

 

You can change the final parameter.

 

background-color: rgba(128, 128, 128, 0.8); /* with 80% opacity */

 

 

 

background-color: rgba(128, 128, 128, 0.4); /* with 40% opacity */

 

If our suggestions are useful, please let us know by giving it a likemarking it as a solution. Thank you very much

 

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


MIDA: Heatmap, Record & Replay |BLOOP Referral Program, Reward |

Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency
RGap
Excursionist
17 1 6

Got it - thank you very much!!

BSSCommerce-TC
Shopify Partner
225 49 51

Hi @RGap 

We're happy to see that our suggestion helped you solve the issue.

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


MIDA: Heatmap, Record & Replay |BLOOP Referral Program, Reward |

Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency