Adding dividers to footer items on mobile layout

Hello all,

I would like to add a bottom border just on mobile layout, like below - The divider should only stretch the length of the box item, not from the full edge to edge. Would someone be able to help? Thanks a lot!

Hey @cardboardhouse

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 solve your problem then, don’t forget to Like it and Mark it as Solution!

Best Regards,
Moeed

Hey! You can do this easily in Shopify without using code.

  1. Go to Online Store > Themes, then click Customize on your theme.

  2. Switch to mobile view (top toolbar).

  3. Click on each of the box items like “Live Chat”, “Get in Touch”, etc.

  4. If your theme supports it, look for a border or divider option in the section settings and enable the bottom border.

  5. If it doesn’t, you can:

Add a Divider block between each item (many themes like Dawn support this).

Or insert a thin Spacer block with a background color (like light grey) to mimic a border.

Just make sure the section/container has the right width so the divider doesn’t stretch edge to edge.

Let me know your theme name if you’d need a hand finding the exact steps!

Thanks but there isn’t an option for this :disappointed_face:

Hi @cardboardhouse

let try this css:

@media screen and (max-width: 599px) {
  .shopify-section-group-footer-group ul.slider__grid li:not(:last-child) {
    position: relative;
  }
  .shopify-section-group-footer-group
    ul.slider__grid
    li:not(:last-child):after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgb(var(--scrollbar-color, 60 60 60));
  }
}

Thanks!! It works

Thank you! It also works :grinning_face_with_smiling_eyes:

yeah. If you don’t want the border of last item, you should use my solution :hugs:

Yes, I think it looks better :slightly_smiling_face:

Absolutely :grinning_face:

I’m sorry, I made a mistake, yours actually doesn’t show anything :disappointed_face:

I think you add wrong at some part.

But nvm, ignore it

Moeed, how can I remove border on the last item?

How can I fix it?

You’re right, I didin’t add it to the footer.css :sweat_smile: - Thanks, I have yours in and working

You’re welcome :hugs: Nice to support you

If you’re bored - here :joy: :joy: