Shadow under line in Header mobile version

Hi, i want this shadow under the line in the Header but only in the mobile version:

I hope you can help me.

thank you

Hi @store095 ,

I have reviewed your requirement, you just need to edit css script and the issue will be resolved. You can follow my instructions!

Step 1: Go to Admin β†’ Online store β†’ Theme > Edit code:

Step 2: Search for the file base.css. And add this code snippet to the end of the file.

.header-wrapper--border-bottom {
    border-bottom: 0 !important;
    box-shadow: 0 5px 10px gray !important;
}

Step 3: Save and reload home page.

=>> The result:

I hope these instructions will help you. If they are helpful, please give us likes and mark as the solution.

Have a nice day sir!

1 Like
  • Here is the solution for you @store095
  • Please follow these steps:

  • Then find the base.css or theme.css file.
  • Then add the following code at the end of the file and press β€˜Save’ to save it.
@media only screen and (max-width: 600px) {
.header-wrapper--border-bottom {
    box-shadow: 0 5px 14px -2px darkgray !important;
}
}
  • Here is the result you will achieve:

  • Please press β€˜Like’ and mark it as β€˜Solution’ if you find it helpful. Thank you.
1 Like

Hey @store095

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 tag


RESULT:

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

Best Regards,
Moeed

1 Like
  1. Go to Online Store β†’ Theme β†’ Edit code.

  2. Open your theme.liquid file

  3. Paste the below code before on theme.liquid

@media screen and (max-width: 767px){ .header-wrapper--border-bottom::after { border-bottom: .3rem solid rgba(var(--color-foreground), .08) !important; content: ''; position: absolute; bottom: -3px; left: 0; right: 0; height: 5px; background: rgb(0 0 0 / 19%); box-shadow: 0 4px 10px rgb(0 0 0 / 19%); z-index: -1; } }

Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.

1 Like

Hi @store095

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

Step 2: Search file theme.liquid

Step 3: Insert this code above tag:


Here is result for only mobile:

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 :heart_eyes:

1 Like

Its working. Thank you.

Is it possible to make it look more like this?:

Best regards

You can change the value of box-shadow like this:


Is that better?

1 Like

Yes. Thank you. :slightly_smiling_face:

1 Like