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

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

outdoorarmory
Excursionist
32 0 12

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

Replies 7 (7)

Kyle_liu
Shopify Partner
437 55 80

Hi @outdoorarmory 

 

Is that the effect?

Kyle_liu_0-1736410997200.png

 

If this is helpful, please Like and Accept the solution.
Want to modify or custom changes on store? Let me help.
- Feel free to contact me Email Me Buy Me A Coffee
outdoorarmory
Excursionist
32 0 12

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

Kyle_liu
Shopify Partner
437 55 80

Edit theme code,

1. find header.liquid

Add `<div id=“hdrbot”></div>` before </head> 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

If this is helpful, please Like and Accept the solution.
Want to modify or custom changes on store? Let me help.
- Feel free to contact me Email Me Buy Me A Coffee

oscprofessional
Shopify Partner
16405 2444 3195

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;
  }
}

 

oscprofessional_0-1736411508342.png

 

 

Hire us | Pass Core Web Vital | B2B Wholesale Experts | Claim Your Free Website Review |
Connect with Us: WhatsApp | Skype: oscprofessionals-87 | Email: pallavi@oscprofessionals.com |
Custom Shopify SolutionsPrivate Apps, Theme Customization & SEO | Digital Marketing |
OSCP Apps: Discount Suite | Wholesale App | Bundle & Upsell | Shipping Discount | and more...
outdoorarmory
Excursionist
32 0 12

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

 

Thanks,

Outdoor Armory

oscprofessional
Shopify Partner
16405 2444 3195
@media (max-width: 768px){
  .shopify-section-header:after {
      height: 75px;
      margin-bottom: -75px;
  }
}

 

oscprofessional_0-1736413401958.png

 

Hire us | Pass Core Web Vital | B2B Wholesale Experts | Claim Your Free Website Review |
Connect with Us: WhatsApp | Skype: oscprofessionals-87 | Email: pallavi@oscprofessionals.com |
Custom Shopify SolutionsPrivate Apps, Theme Customization & SEO | Digital Marketing |
OSCP Apps: Discount Suite | Wholesale App | Bundle & Upsell | Shipping Discount | and more...

DaisyVo
Shopify Partner
4467 499 596

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: 

DaisyVo_0-1736412771989.png

 

Here is the result:

DaisyVo_1-1736412788558.png

 

Please let me know if it works!

 

Best,

Daisy

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution