Spacer line and removal of blank space

Topic summary

Two issues: unwanted white space in a section, and a request to add customizable spacer lines (thickness, color, length) between sections.

Most recent guidance focuses on the white space. Action items:

  • Share the affected page URL so others can inspect the live store.
  • Check section settings for a button/link that has no text; a linked button without label can still reserve space. Remove the link if unused.
  • If needed, add custom CSS to hide the empty button: .brush-upper-btn { display: none; }.
  • Reduce excess spacing by overriding image container margin: .bottom-images-container { margin-top: 0; } (or set a specific px value).

Technical notes: CSS is the site’s styling code; “margin-top” controls space above an element.

The spacer line request (editable thickness, color, length) is not yet addressed with a concrete solution.

Images/screenshots are central to understanding the layout issues.

Status: Ongoing. No confirmation of fix yet; key follow-ups are providing the URL and implementing the suggested CSS and setting checks. The spacer line implementation remains an open question.

Summarized with AI on December 30. AI used: gpt-5.

Hiya, I have to main issues today. First is a white space in one of my sections. I’ve contacted Shopify Support but “it doesn’t fall under their scoop of support”, so if anyone has any custom css or way to remove it such as making the font size bigger please help me.

Furthermore, my other issue was regarding if anyone knew how to add spacer lines which allow me to differentiate between two sections. Ideally I can edit all metrics like thickness, color, length, etc…

Appreciate the help and please forgive my ignorance, thank you!

2 Likes

@Comari can you share a url with the affected page?

Hi @Comari

While I seen your posts and know your store, there are other who may not. So please to include your store link, and specific page, when posting questions. And no need for quotes for answer from Shopify support, it really is not.

For empty space, first check settings and find button, there is a link but no button text so it still takes space. If you remove link it should be hidden. If not add this to Custom CSS of that section

.brush-upper-btn { 
    display: none;
}

Second thing is a big top margin of image try to override with this code in same section.

.bottom-images-container {
        margin-top: 0;
}

Or value in px that you want.

For second question, ideally you can create a separate section that have hr HTML element but code it with all features you want. But that is a custom work.

You can crate Custom liquid section and add code

<hr class="custom-hr">
<style>
  .custom-hr { 
   border: none;
   border-top: 2px solid #333;
   margin: 30px auto; 
  width: 80%; 
}
</style>

And control padding in section plus marking, color thickness in code.

EDIT: Oh well, here is AI-generated code for the custom section. Create a new section in Edit theme code, by first selection section and clicking on new file icon. Name it
divider.liquid

Here is full code you need to copy in that new file

{% style %}
  .section-{{ section.id }} {
    padding-top: {{ section.settings.padding_top }}px;
    padding-bottom: {{ section.settings.padding_bottom }}px;
  }

    .divider-{{ section.id }} {
    width: {{ section.settings.width }};
    border: none;
    border-top: {{ section.settings.thickness }}px {{ section.settings.style }} {{ section.settings.color }};
    height: 0;
    margin-left: {% if section.settings.alignment == 'center' %}auto{% elsif section.settings.alignment == 'right' %}auto{% else %}0{% endif %};
    margin-right: {% if section.settings.alignment == 'center' %}auto{% elsif section.settings.alignment == 'left' %}auto{% else %}0{% endif %};
    }
{% endstyle %}

<div class="section-{{ section.id }}">
  <hr class="divider-{{ section.id }}">
</div>

{% schema %}
{
  "name": "Divider / HR",
  "settings": [
    {
      "type": "color",
      "id": "color",
      "label": "Line color",
      "default": "#000000"
    },
    {
      "type": "range",
      "id": "thickness",
      "label": "Line thickness (px)",
      "min": 1,
      "max": 10,
      "step": 1,
      "default": 1
    },
    {
      "type": "text",
      "id": "width",
      "label": "Line width (px or %)",
      "default": "100%"
    },
    {
      "type": "select",
      "id": "alignment",
      "label": "Alignment",
      "options": [
        { "value": "left", "label": "Left" },
        { "value": "center", "label": "Center" },
        { "value": "right", "label": "Right" }
      ],
      "default": "center"
    },
    {
      "type": "select",
      "id": "style",
      "label": "Line style",
      "options": [
        { "value": "solid", "label": "Solid" },
        { "value": "dashed", "label": "Dashed" },
        { "value": "dotted", "label": "Dotted" }
      ],
      "default": "solid"
    },
    {
      "type": "range",
      "id": "padding_top",
      "label": "Top spacing (px)",
      "min": 0,
      "max": 200,
      "step": 4,
      "default": 20
    },
    {
      "type": "range",
      "id": "padding_bottom",
      "label": "Bottom spacing (px)",
      "min": 0,
      "max": 200,
      "step": 4,
      "default": 20
    }
  ],
  "presets": [
    {
      "name": "Divider"
    }
  ]
}
{% endschema %}

Have fun.

Hi @Comari

Welcome to the Shopify Community! Please share your store URL and password (if it’s password-protected), so I can check and provide you with the exact solution.

Best regards,
Devcoder :laptop:

@Comari can you please share your page link?

Hi, thanks for answering and sorry for the time taken, I’ve been very busy working on other improvements, here’s the link: About Us - Comari

Sorry for taking so long!

1 Like

here, sorry for taking so long

1 Like

Hi Laza, hopes this finds you well.

I made the adjustments you provided me with and their marvelous! Thank you so much for your help.

There are to main issues, I hope their not much of a hustle to solve. First one is with the divider, the code works except for one detail. As you can see on the video, the divider carries some spacing even though I set it to 0 padding both top and bottom: Watch Grabación de pantalla 2025-12-31 a las 17.05.00 | Streamable

The, for the white spacing, I’ve decided to add an action button, still, now with the code you gave there is the same space but at the bottom. I don’t know if you can do something so the images stretch a bit or something so some of the white spacing is covered, if not, don’t worry, i understand this is too much work and I’m very sorry to annoy you with it.

Thank you very much and hope to hear back from you soon!

Hi @Comari

I checked your website, but it seems that the issue may already be resolved.
If you have any other issues, please let me know. I’ll check and update you properly.

Best regards,
Devcoder :laptop:

@Comari hello, the thing is that the section is divided into 2 parts and height depends on the content. So as you can see that text in the next section is a bit more than the height of the images in the first section, therefore both sections are getting vertically stretched and hence you see that space in first section.

Hi again devcoders, thanks for your response. As you can see in the comment above on my response to @Laza_Binaery I have a new issue, the one talking about how I added an action button etc…

Hope you can help me with this one, thanks again and have a great day!

1 Like

@Comari

For divider, extra space that is there , even if you set 0 for both padding, comes from theme CSS for hr element and it can be overrwrten with small code change in section. Add

    margin-top:0;
    margin-bottom: 0;

To so this part of code looks like

{% style %}
  .section-{{ section.id }} {
    padding-top: {{ section.settings.padding_top }}px;
    padding-bottom: {{ section.settings.padding_bottom }}px;
  }

  .divider-{{ section.id }} {
    width: {{ section.settings.width }};
    border: none;
    border-top: {{ section.settings.thickness }}px {{ section.settings.style }} {{ section.settings.color }};
    height: 0;
    margin-top:0;
    margin-bottom: 0;
    margin-left: {% if section.settings.alignment == 'center' %}auto{% elsif section.settings.alignment == 'right' %}auto{% else %}0{% endif %};
    margin-right: {% if section.settings.alignment == 'center' %}auto{% elsif section.settings.alignment == 'left' %}auto{% else %}0{% endif %};
  }
{% endstyle %}

That way, you would be able to control space with just padding from the divider section setting.

For space, you can change some code and strech image but it will cut off one part, so try to change the image itself. Dimension could be 747x1024px. But for the
code, here it is

.bottom-images-container {
    margin-top: 20px;
    align-items: stretch;
    flex: 1;
}
.bottom-left-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bottom-left-img img {
    width: 100%;
    object-fit: cover;
    margin-bottom: -5px;
    height: 100%;
   object-position: left;
}
.bottom-right {
    display: flex;
}
.bottom-right-img {
    margin-top: auto;
}

That should result in this,

Good luck

Hi @Comari

Okay, please send me the collaborate code and also share all the issues you’re facing.
Kindly email the details with screenshots, so I can review everything together and provide you with a proper update.

Best regards,
Devcoder :laptop:

If now added the code to the divider liquid and it works!
I highly appreciate your work and time to solve this issue for me, once again sorry for the hustle and hope you have a wonderful day, thank you!

1 Like