How to add this skid mark to the bottom of my header block?

Hi everyone,

My website is: theoutdoorarmory.com

My theme is: Xtra

I’d like to add the skid mark (as per below) below my header menu.

Header skid.png

My inspiration is this website: https://rox.com.ph/ . And its skid mark is this image below. It looks nice for a sticky menu.

hdrbot2.png

Please help.

Thanks,

Outdoor Armory

Hi @outdoorarmory

Is that the effect?

1 Like

Hi @outdoorarmory ,

Go to Online Store > Themes > Actions > Edit Code > screen.css

Add below code at the bottom of screen.css file

.shopify-section-header:after {
    content: '';
    background-image: url(paste your image url);
    height: 22px;
    display: block;
    background-position: bottom;
    margin-bottom: -22px;
    background-color: transparent !important;
    margin-left: -30px;
    margin-right: -30px;
}
@media (max-width: 768px){
  .shopify-section-header:after {
      height: 93px;
  }
}

Hi @Kyle_liu , yes, that’s the effect we are looking for! How did you do that, please?

Hi @oscprofessional , thanks for this! Would this also work on mobile layout? Afraid that we might destroy mobile layout. Please advise.

Thanks,

Outdoor Armory

Edit theme code,

  1. find header.liquid

Add <div id=“hdrbot”></div> before tag
Add code before {%- endstyle -%}

#hdrbot {
  content: '';
  background-image: url("https://cdn.shopify.com/s/files/1/0563/9634/9489/files/hdrbot2.png?v=1713339989");
  height: 22px;
  display: block;
  background-position: bottom;
  margin-bottom: -22px;
  background-color: transparent !important;
  position: relative;
  z-index: 9;
  width: calc(100% + var(--rpp) * 2);
  margin-left: var(--rpn);
  margin-right: var(--rpn);
}

background-images needs to be replaced

Hi @outdoorarmory ,

You can follow the steps here:

Step 1: Shopify admin > Online store > Customize: https://prnt.sc/XQ6IDB99kUCd
Step 2: From the left menu > Theme settings > Open Custom CSS: https://prnt.sc/ypQ7nly2wv27
Step 3: Copy the code below and paste it there

Here is the code for step 3:

div.shopify-section-group-header-group.shopify-section-header::after {
    content: "";
    background-image: url("image-link");
    height: 22px;
    display: block;
    background-position: bottom;
    margin-bottom: -20px;
    background-color: transparent !important;
    width: 120% !important;
    margin-left: -10%;
}

For the ‘image-link’ part, please upload the image in your store, then get the cdn link here:

Here is the result:

Please let me know if it works!

Best,

Daisy

@media (max-width: 768px){
  .shopify-section-header:after {
      height: 75px;
      margin-bottom: -75px;
  }
}